saber icon indicating copy to clipboard operation
saber copied to clipboard

Disable Markdown rendering in Vue-in-Markdown elements

Open krmax44 opened this issue 4 years ago • 1 comments

Bug report

Markdown in Vue-in-Markdown components gets rendered.

Steps to reproduce

# Hello!

<my-component>Works!</my-component>
<my-component>
  Doesn't work!
</my-component>
<my-component>
  # Hello
</my-component>

<button># A regular HTML button works just fine</button>

What is expected?

<h1>Hello!</h1>

<my-component>Works!</my-component>

<my-component>Doesn't work!</my-component>

<my-component># Hello</my-component>

<button># A regular HTML button works just fine</button>

What is actually happening?

Gets rendered to:

<h1>Hello!</h1>

<my-component>Works!</my-component>

<my-component><p>Doesn't work!</p></my-component>

<my-component><h1>Hello</h1></my-component>

<button># A regular HTML button works just fine</button>

Other relevant information

  • Result of running saber -v: latest
  • Browser version (optional):
  • Is Saber a global or local install? local
  • Which package manager did you use for the install? yarn
  • Does this issue occur when all plugins are disabled? ye

krmax44 avatar Oct 09 '19 14:10 krmax44

That should be possible by modifying the html renderer in markdown-it, I haven't tested it tho.

egoist avatar Oct 09 '19 17:10 egoist