Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature-request] Automatically close tags <img> for JSX compliance. #2505

Open
CFornari opened this issue Feb 16, 2021 · 0 comments
Open

[Feature-request] Automatically close tags <img> for JSX compliance. #2505

CFornari opened this issue Feb 16, 2021 · 0 comments

Comments

@CFornari
Copy link

CFornari commented 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

  • Mark Text :v0.16.3
  • Operating system: PopOS 20.04
@CFornari CFornari changed the title Request automatic close tags <img> for JSX compliance. [Feature-request] Automatically close tags <img> for JSX compliance. Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant