Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Markdown rendering in Vue-in-Markdown elements #516

Open
krmax44 opened this issue Oct 9, 2019 · 1 comment
Open

Disable Markdown rendering in Vue-in-Markdown elements #516

krmax44 opened this issue Oct 9, 2019 · 1 comment

Comments

@krmax44
Copy link
Contributor

krmax44 commented Oct 9, 2019

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
@egoist
Copy link
Collaborator

egoist commented Oct 9, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants