[Solved] How to render `markdown` with multi lines?

I tried to use markdown meteor package.
But have problem with multi lines

<template>
  {{#markdown}}
    # I am using __markdown__.
    # I am using __markdown__.
    # I am using __markdown__.
  {{/markdown}} 
</template>

Please help me

without having it installed: Markdown needs 2 spaces at line end for a normal line break, and an empty extra line for a paragraph.

Still don’t work

image

<p>
    {{#markdown}}# I am using __markdown__. 
# I am using __markdown__. 
# I am using __markdown__.
    {{/markdown}}
</p>

image

When writing the HTML inline like this you must remove your extra tabbing and spacing, otherwise markdown is gonna pick it up as pre and code blocks.

Other than that, the markdown works 100% as expected for me with no additional styling. Make sure your styling isn’t effecting the markdown. For example you might be styling h1 with “inline-block” which would cause you to lose new lines on heading tags.

2 Likes

Now it work fine, Very thanks :blush: