Why do I need to append blank line before markdown tag when embeded within Html tag?

Operating system

Windows

Joplin version

2.14.19

Sync target

OneDrive

Editor

Markdown Editor

What issue do you have?

When attempting to embed a markdown label within a Html label, I've found that only Code A functions correctly.

The Code B, Code C and Code D will display the original text ![Pro.png](:/323475ba602d4c9d8e1b2b75b123efb) in the result window. It appears that the markdown engine isn't interpreting the ![Pro.png](:/323475ba602d4c9d8e1b2b75b123efb) correctly.

How can I remove the blank line before embedding a markdown label within a Html label?

Code A

<div class="myImage">   

![Pro.png](:/323475ba602d4c9d8e1b2b75b123efb)
</div>

Code B

<div class="myImage">   
![Pro.png](:/323475ba602d4c9d8e1b2b75b123efb)
</div>

Code C

<div class="myImage">   
<br/>
![Pro.png](:/323475ba602d4c9d8e1b2b75b123efb)
</div>

BTW, the Code D doesn't display the correct result, but it can change the style of ![Pro.png](:/323475ba602d4c9d8e1b2b75b123efb) in editor window.

Code D

<div class="myImage" markdown="1">   
![Pro.png](:/323475ba602d4c9d8e1b2b75b123efb)
</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.