Strong tag not working when in an ordered list and the list number is multiple digits #130

Closed
opened 2026-01-29 14:28:12 +00:00 by claunia · 4 comments
Owner

Originally created by @davidmeekstockport on GitHub (Aug 14, 2017).

Hi Mark Dig,

I seem to be having an issue when converting some markdown to html. The markdown is as follows:

11. __test__ hello

It seems to convert to this:

<li>
    <pre>
        <code>est__ hello</code>
    </pre>
</li>

I'm not entirely sure how this is happening, or if there are any extensions I can use to bypass this issue. This issue appears on the latest version 0.13.0. Any ideas?

Thanks,

David

Originally created by @davidmeekstockport on GitHub (Aug 14, 2017). Hi Mark Dig, I seem to be having an issue when converting some markdown to html. The markdown is as follows: `11. __test__ hello` It seems to convert to this: ``` <li> <pre> <code>est__ hello</code> </pre> </li> ``` I'm not entirely sure how this is happening, or if there are any extensions I can use to bypass this issue. This issue appears on the latest version 0.13.0. Any ideas? Thanks, David
claunia added the bug label 2026-01-29 14:28:12 +00:00
Author
Owner

@xoofx commented on GitHub (Aug 14, 2017):

Can't reproduce this issue on babelmark

It seems that you have this issue in a context not described here...

@xoofx commented on GitHub (Aug 14, 2017): Can't reproduce this issue on [babelmark](https://babelmark.github.io/?text=11.+__test__+hello) It seems that you have this issue in a context not described here...
Author
Owner

@davidmeekstockport commented on GitHub (Aug 15, 2017):

I've done some further investigation into this issue and have found the following.

When executing this code:

var html = Markdown.ToHtml("10.\t*test* – test\n\n11.\t__test__ test\n\n", new MarkdownPipelineBuilder().Build());

I get back

<ol start="10">
    <li>
        <pre>
            <code>t* – test</code>
        </pre>
    </li>
    <li>
        <pre>
            <code>st__ test</code>
        </pre>
    </li>
</ol>

However if I were to take out the \t I get this:

<ol start="10">
    <li>
        <p><em>test</em> – test</p>
    </li>
    <li>
        <p><strong>test</strong> test</p>
    </li>
</ol>

And again this only seems happens if the list numbers are double digits. I also can't recreate this on babelmark.

@davidmeekstockport commented on GitHub (Aug 15, 2017): I've done some further investigation into this issue and have found the following. When executing this code: `var html = Markdown.ToHtml("10.\t*test* – test\n\n11.\t__test__ test\n\n", new MarkdownPipelineBuilder().Build());` I get back ``` <ol start="10"> <li> <pre> <code>t* – test</code> </pre> </li> <li> <pre> <code>st__ test</code> </pre> </li> </ol> ``` However if I were to take out the `\t` I get this: ``` <ol start="10"> <li> <p><em>test</em> – test</p> </li> <li> <p><strong>test</strong> test</p> </li> </ol> ``` And again this only seems happens if the list numbers are double digits. I also can't recreate this on babelmark.
Author
Owner

@xoofx commented on GitHub (Aug 15, 2017):

Looks like a bug in markdig on babelmark... will have to check this...

@xoofx commented on GitHub (Aug 15, 2017): Looks like a bug in markdig on [babelmark](https://babelmark.github.io/?text=10.%09*test*+%E2%80%93+test%0A11.%09__test__+test)... will have to check this...
Author
Owner

@xoofx commented on GitHub (Aug 21, 2017):

This should be fixed by commit bb30dc2 and available in 0.13.1

@xoofx commented on GitHub (Aug 21, 2017): This should be fixed by commit bb30dc2 and available in 0.13.1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#130