We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 558d5b6 commit 8a76fd3Copy full SHA for 8a76fd3
lib/PJP/Util.pm
@@ -22,7 +22,12 @@ sub slurp {
22
sub markdown_to_html {
23
my ($markdown) = @_;
24
25
- my $html = Text::Markdown::Discount::markdown($markdown);
+ state $flag = Text::Markdown::Discount::MKD_NOHEADER
26
+ | Text::Markdown::Discount::MKD_NOPANTS
27
+ | 0x02000000 # MKD_FENCEDCODE
28
+ ;
29
+
30
+ my $html = Text::Markdown::Discount::markdown($markdown, $flag);
31
32
# perldoc.jp 用の加工
33
$html =~ s{^.*<(?:body)[^>]*>}{}si;
0 commit comments