You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
CFornari
changed the title
Request automatic close tags <img> for JSX compliance.
[Feature-request] Automatically close tags <img> for JSX compliance.
Feb 16, 2021
Description
I'm using MarkText to edit md files for my Docusauros static site.
When using the options to align any image file, the editor switches from
!(text)[link]
to<img ...>
.When generating the static site, I receive an error:
Unterminated JSX contents
.This happens because, although open tags are allowed in md syntax, JSX doesn't allow open tags.
To fix this, I have to manually close all
<img>
tags with<\img>
.I opening this issue to ask the automatic addition of
<\img>
tags.Expected behavior:
When
<img>
tag is used, do this:<img ...> </img>
Actual behavior:
<img ...>
Link to an example:
How I found the issue!
Versions
The text was updated successfully, but these errors were encountered: