You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having the isInline option in this case seems to duplicate the HTML tags. When I pass it the following as source:
<p>Enter your details below to get your <spanclass="text-primary">personalized</span> challenge!</p>
I get the following HTML out:
<p><!-- HTML_TAG_END -->
Enter your details below to get your
<!-- HTML_TAG_START --><spanclass="text-primary"><!-- HTML_TAG_END -->
personalized
<!-- HTML_TAG_START --></span><!-- HTML_TAG_END -->
challenge!
<!-- HTML_TAG_START --></p><p>
Enter your details below to get your <spanclass="text-primary"></span>personalized challenge!<p></p>
If I omit the outerp, input (for this test case, the output is incorrect even with isInline={false}--it outputs the contents of the span twice, once in the span tag and once outside, see below):
Enter your details below to get your <spanclass="text-primary">personalized</span> challenge!
I get:
isInline={true}:
Enter your details below to get your <spanclass="text-primary"></span>personalized challenge!
isInline={false}:
Enter your details below to get your
<spanclass="text-primary"><!-- HTML_TAG_END -->
personalized
<!-- HTML_TAG_START --></span>personalized challenge!</h2>
Can't create a Svelte REPL to reproduce because of the following issue when trying to import svelte-markdown:
"Slugger" is not exported by "https://unpkg.com/[email protected]/lib/marked.esm.js", imported by "https://unpkg.com/[email protected]/src/markdown-parser.js".
The text was updated successfully, but these errors were encountered:
Having the
isInline
option in this case seems to duplicate the HTML tags. When I pass it the following as source:I get the following HTML out:
If I omit the outer
p
, input (for this test case, the output is incorrect even withisInline={false}
--it outputs the contents of thespan
twice, once in thespan
tag and once outside, see below):I get:
isInline={true}
:isInline={false}
:Can't create a Svelte REPL to reproduce because of the following issue when trying to import svelte-markdown:
The text was updated successfully, but these errors were encountered: