Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use default flags for discount #137

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading