frontmatter-markdown-loader icon indicating copy to clipboard operation
frontmatter-markdown-loader copied to clipboard

Using style-tag breaks .md file

Open gregorvoinov opened this issue 4 years ago • 5 comments

Hi,

Is there a way to use style inside .md file?

<style>
 .myClass{
    ...
 }
</style>
 
<div class="myClass">

If I'm inserting style the file doesn't get rendered.

gregorvoinov avatar Apr 06 '21 20:04 gregorvoinov

it'd be great if you provide reproducible repo 😉 As default, markdown compiler keeps HTML tags as is.

hmsk avatar Apr 06 '21 22:04 hmsk

I will create one at the weekend. The Html works fine. But using mode: [Mode.VUE_COMPONENT] has nothing todo with that? I only added this plugin markdownIt: markdownIt({ html: true }).use(markdownItAttrs)

gregorvoinov avatar Apr 07 '21 05:04 gregorvoinov

cool, the additional info was helpful and could be reproduced on my end too (so don't need to have a repo!). This seems to be a bug and I'm going to look into it deeply when I get a chance.

hmsk avatar Apr 07 '21 05:04 hmsk

ah awesome ;) currently I have wrapped it into a vue component, so no hurry from my side.

gregorvoinov avatar Apr 07 '21 11:04 gregorvoinov

Same bug with me. Component registered correctly

This didn't work, empty page:

Some text.

<app-info-block type="attention">
  <i>Paragraph 1</i>
  
  Paragraph 2
  
  Paragraph 3
</app-info-block>

Another text

After removing empty lines starts working:

Some text.

<app-info-block type="attention">
  <i>Paragraph 1</i>
  Paragraph 2
  Paragraph 3
</app-info-block>

Another text

As workaround use <br>

Some text.

<app-info-block type="attention">
  <i>Paragraph 1</i><br>
  Paragraph 2<br>
  Paragraph 3
</app-info-block>

Another text

Alex-Sokolov avatar Apr 09 '21 06:04 Alex-Sokolov