Skip to content

Commit

Permalink
Merge pull request #4 from grassedge/issue-2
Browse files Browse the repository at this point in the history
Fix: Pass required object 'env'.
  • Loading branch information
grassedge authored Feb 5, 2020
2 parents fd4ec36 + 41adf10 commit dca5b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const infoRegexp = /^plantuml(?:@(.+))?:([\w-_.]+)/;

function puFromMd(markdown) {
const md = new markdownit();
const fences = md.parse(markdown)
const fences = md.parse(markdown, {})
.filter(token => token.type === 'fence')
.filter(token => infoRegexp.test(token.info));

Expand Down

0 comments on commit dca5b41

Please sign in to comment.