Showdown: maximum nesting of 10 spans reached!!!

Created on 28 Mar 2019  路  3Comments  路  Source: showdownjs/showdown

Input text

<span class="test">_a_, _a_, _a_, _a_, _a_, _a_, _a_, _a_, _a_, _a_, _a_, _a_, _a_, _a_, _a_, _a_, _a_, _a_, _a_</span>

results in error

maximum nesting of 10 spans reached!!!

and weird output

<p>
    <span class="test">
        <em>a</em>,
        <em>a</em>,
        <em>a</em>,
        <em>a</em>,
        <em>a</em>,
        <em>a</em>,
        <em>a</em>,
        <em>a</em>,
        <em>a</em>,
        <em>a</em>,
        <em>a</em>,
        篓C11C,
        篓C12C,
        篓C13C,
        篓C14C,
        篓C15C,
        篓C16C,
        篓C17C,
        篓C18C
    </span>
</p>
bug

Most helpful comment

@xduseko @tivie i am still getting the same error. Any solution ? please guide the fix
i am using "showdown": "1.9.1",

All 3 comments

That error "maximum nesting of 10 spans reached!!!" is a safeguard against an infinite loop. In version 2.0, due to changes in the parser logic, is no longer needed, so it's fixed.

Hi, when is 2.0 expected to ship?

For a quick fix I added this npm script to my package.json, "postinstall": "sed -i '' 's/=== 10/=== 1e4/' node_modules/showdown/dist/showdown.js",

@xduseko @tivie i am still getting the same error. Any solution ? please guide the fix
i am using "showdown": "1.9.1",

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BusyHe picture BusyHe  路  4Comments

JerryYangJin picture JerryYangJin  路  7Comments

savsharma2 picture savsharma2  路  7Comments

subodhpareek18 picture subodhpareek18  路  5Comments

reisraff picture reisraff  路  5Comments