Skip to content

Commit

Permalink
use default flags for discount
Browse files Browse the repository at this point in the history
  • Loading branch information
gflohr committed Dec 13, 2023
1 parent 99f49ef commit 339df98
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 339df98

Please sign in to comment.