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

Markdown in HTML tags don't work #78

Closed
soupslurpr opened this issue Aug 12, 2023 · 2 comments
Closed

Markdown in HTML tags don't work #78

soupslurpr opened this issue Aug 12, 2023 · 2 comments

Comments

@soupslurpr
Copy link

soupslurpr commented Aug 12, 2023

Hello, thanks for this cool crate. I noticed that markdown in html tags do not work unless there is a character or more of text before the opening tag for each html tag. I also noticed it is like this in GitHub. Is this intended and could there be a way to make it work?

any text <p style="text-align: center;">
	**hello**
<p>

^ works as expected, centering and bolding "hello" with "any text" above it

any text 
<p style="text-align: center;">
	**hello**
<p>

^ Centering "hello" works, but bolding does not and the ** are visible.

@soupslurpr soupslurpr changed the title Markdown in HTML tags Markdown in HTML tags don't work Aug 12, 2023
@ChristianMurphy
Copy link
Collaborator

Welcome @soupslurpr! 👋
markdown-rs builds on the CommonMark (https://commonmark.org/) and GitHub Flavored Markdown (GFM, https://github.github.com/gfm/) specifications.
The behavior you show, is as-described in the standard and is expected.

The way to make it work would be to customize markdown-rs using plugins #32
The design for plugins is still being ironed out, contributions towards moving plugins forward are welcome!

Closing this as the behavior described is expected, and plugin work is tracked in #32

@ChristianMurphy ChristianMurphy closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2023
@soupslurpr
Copy link
Author

Oh alright, that makes sense. Thanks for the quick response!

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

2 participants