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

Extend markdown support inside HTML / components #560

Open
Tracked by #580 ...
nvlang opened this issue Jan 17, 2024 · 5 comments
Open
Tracked by #580 ...

Extend markdown support inside HTML / components #560

nvlang opened this issue Jan 17, 2024 · 5 comments
Labels
assigned Whether or not this bug has been assigned some to some other issues as a subtask or pre-req enhancement New feature or request
Milestone

Comments

@nvlang
Copy link

nvlang commented Jan 17, 2024

Markdown inside HTML tags or custom components needs to be wrapped by newlines to render correctly:

<span>*not italic*</span>

<span>
*not italic*
</span>

<span>

*italic*

</span>

This limitation includes math (i.e., $\mathrm{\TeX}$) expressions (for repos using remark-math and rehype-mathjax / rehype-katex-svelte / rehype-katex).

@GuillaumeQuenneville
Copy link

Math issues are tracked here #302
I think the last comments have a solution to your problem.

@nvlang
Copy link
Author

nvlang commented Feb 21, 2024

Math issues are tracked here #302
I think the last comments have a solution to your problem.

Thank you for the hint! I felt like this was a different enough (in particular, more specific) to warrant a separate issue, but I did read through #302 and the comments there, and did not find any solution to my issue (aside from the workaround that I already mentioned above).

@pngwn
Copy link
Owner

pngwn commented Feb 21, 2024

This could also be related to the fact that you can't have markdown 'in' HTML at the moment. Stuff like this doesn't work:

<span>*hi*</span>

Instead you need to have newline in between:

<span>

*hi*

</span>

This is how markdown works in general but is a limitation I plan to address.

@nvlang
Copy link
Author

nvlang commented Feb 21, 2024

@pngwn I don't know how I missed that! Would it be helpful to edit this issue to address "markdown in HTML/components" in general?

@pngwn
Copy link
Owner

pngwn commented Feb 21, 2024

Yeah, that would be great! I thought we had an issue for this but I could not find it, so renaming this would be perfect, thank you.

@nvlang nvlang changed the title Support LaTeX inside HTML / components Extend markdown support inside HTML / components Feb 21, 2024
@pngwn pngwn added enhancement New feature or request assigned Whether or not this bug has been assigned some to some other issues as a subtask or pre-req labels Feb 23, 2024
@pngwn pngwn modified the milestones: 1.0, 1.0 docs + integrations Feb 23, 2024
This was referenced Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned Whether or not this bug has been assigned some to some other issues as a subtask or pre-req enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants