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>
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",
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",