question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Render Markdown in HTML

See original GitHub issue

Hello, is there any chance to get Markdown syntax working inside HTML elements?

Now this

<div style="float: right">

# Hello

</div>

renders as <div style="float: right;"># Hello</div>

I know that some md compilers does it and some not, but can we do that with passing some option to compiler?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
probablyupcommented, Jun 12, 2019

It’s markdown in a markdown processor, not sure what to tell you. Putting it in a code block is the only way to tell the compiler it’s not meant to be processed.

On Wed, Jun 12, 2019 at 8:08 AM Ivan Kleshnin notifications@github.com wrote:

Each of them will add two lines to MD content. And I’ll have multiple cases like this per file:

<Quiz>
  • Option-1

  • Option-2

  • Option-3

</Quiz> <Quiz>
  • Option-1

  • Option-2

  • Option-3

</Quiz>

vs this:

<Quiz>

‘’’

  • Option-1

  • Option-2

  • Option-3

‘’’

</Quiz> <Quiz>

‘’’

  • Option-1

  • Option-2

  • Option-3

‘’’

</Quiz>

– quite a burden.

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/probablyup/markdown-to-jsx/issues/153?email_source=notifications&email_token=AAELFVRYAROI55UFF3RXWVLP2DYLDA5CNFSM4ERGXX2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXQLDYI#issuecomment-501264865, or mute the thread https://github.com/notifications/unsubscribe-auth/AAELFVQKUO26I6MYJS2MIALP2DYLDANCNFSM4ERGXX2A .

0reactions
ivan-kleshnincommented, Jun 12, 2019

Each of them will add two lines to MD content. And I’ll have multiple cases like this per file:

<Quiz>
* Option-1
* Option-2
* Option-3
</Quiz>

<Quiz>
* Option-1
* Option-2
* Option-3
</Quiz>

vs

<Quiz>
'''
* Option-1
* Option-2
* Option-3
'''
</Quiz>

<Quiz>
'''
* Option-1
* Option-2
* Option-3
'''
</Quiz>

– quite a burden.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Render Markdown on a Web Page With md-block
Your current process may involve creating Markdown files by hand, then converting them into HTML. This is how many modern CMS applications work....
Read more >
How can I wrap my markdown in an HTML div? - Stack Overflow
For Markdown, This is by design. From the Inline HTML section of the Markdown reference: Note that Markdown formatting syntax is not processed...
Read more >
md-block: Render styleable Markdown in your HTML
md-block adds a rendered attribute to elements whose Markdown has been rendered. This allows you to style unrendered content however you please, by...
Read more >
Render markdown to HTML - R
markdownToHTML transforms the markdown text provided by the user in either the file or text variable. The HTML transformation is either written to...
Read more >
Getting Started | Markdown Guide
Markdown applications use something called a Markdown processor (also commonly referred to as a “parser” or an “implementation”) to take the Markdown-formatted ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found