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

Fenced code block is ignored when its content contains markdown #32

Open
mperry2 opened this issue Dec 28, 2016 · 1 comment
Open

Fenced code block is ignored when its content contains markdown #32

mperry2 opened this issue Dec 28, 2016 · 1 comment

Comments

@mperry2
Copy link

mperry2 commented Dec 28, 2016

When a fenced code block contains markdown, the markdown is rendered and the fenced code block is ignored. I'm using Perl 5.22.0 and Text::MultiMarkdown 1.000035.

Here's a test case.

use strict;
use warnings;
use Text::MultiMarkdown 'markdown';

my $text = <<'EOF';
```
# This is a test
```
EOF

my $html = markdown($text);
print "$html\n";

Expected result:

<p><code>
# This is a test
</code></p>

Actual result:

<p>```</p>

<h1 id="thisisatest">This is a test</h1>

<p>```</p>
@tony-o
Copy link

tony-o commented Oct 13, 2021

I know this is old but +1 -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants