Closed ingodahn closed 2 years ago
Is there anybody reading these? I got another problem. The flavor that works best for me is github, but:
It seems I would have to modify the github flavor, but I don't understand how this can be done.
It seems I would have to modify the github flavor, but I don't understand how this can be done.
The flavor is simply a presets of showdown options.
vue-showdown is simply a vue component wrapper for showdown.
Your problem / question seems to be a showdown issue, which is out of the scope of vue-showdown. I think you should go to the repo of showdown to get more helps.
Can you please send me the option settings of the github flavor so that I don't have to start from scratch? Best Ingo Dahn
Description
Context: I have a component with VueShowdown as a subcomponent. For typesetting formulas I use KaTeX; in particular, this parent component calls KaTeXs
renderMathInElement
on each mount.That works fine - unless the formula contains an underscore for a subscript.
Example: The markdown
$x_0$ is not $x_1$
is rendered as$x0isnotx1$
, all in italics_Addendum: I observed that subscripts are correctly displayed when escaped. which is not the case in the markdown I edit in the Jupyter Notebook editor in the CoCalc system. Superscripts render correctly without escaping. Is there a flavor that cares for this?
Addendum 2: With github flavor, formulas render correctly but linebreaks in markdown are rendered as
<br/>
. Which option avoids this?Reproduction
https://stackblitz.com/edit/vue-showdown-ojdvzf?file=src/App.vue
Used Package Manager
npm
System Info