Skip to content

Commit

Permalink
Merge pull request #137 from gflohr/136-no-hyphens-in-special-tags
Browse files Browse the repository at this point in the history
use default flags for discount
  • Loading branch information
gflohr authored Dec 13, 2023
2 parents 99f49ef + 339df98 commit 1588286
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/Qgoda/Processor/Markdown.pm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,18 @@ sub new {
sub process {
my ($self, $content, $asset, $filename) = @_;

return markdown $content;
# Do not add 0x00001000 (MKD_TOC) here.
my $flags =
0x00000004 # do not do Smartypants-style mangling of quotes, dashes, or ellipses.
| 0x00004000 # make http://foo.com link even without <>s
| 0x00200000 # enable markdown extra-style footnotes
| 0x01000000 # enable extra-style definition lists
| 0x02000000 # enabled fenced code blocks
| 0x08000000 # enable dash and underscore in element names
| 0x40000000 # handle embedded LaTex escapes
| 0x80000000 # don't combine numbered bulletted lists
;
return markdown $content, $flags;
}

1;
Expand Down

0 comments on commit 1588286

Please sign in to comment.