-
Notifications
You must be signed in to change notification settings - Fork 106
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
HTML in Markdown is not allowed (especially the style attribute on elements) #508
Comments
@ErtugrulSener this is a mdx issue. We are processing markdown files as mdx so you have to do:
See https://www.w3schools.com/react/react_css.asp for more. This is annoying - but no way round it if we want MDX type support for rich JSX components. (Note to us: we should flag this in docs somewhere better!) |
@rufuspollock Why do you need the MDX type support? And I heard you are working on an obsidian extension for flowershow, how will you handle this type of things there? |
@ErtugrulSener we support MDX so we can add charts and other rich components to markdown. However, i take your point about the complexity. We'll think more about this - one option is to use different extensions for explicit mdx files vs markdown. |
… (it is mdx). Getting uninformative error: "Application error: a client-side exception has occurred (see the browser console for more information)." Suspect this is the fact we are using html style tag rather than react style - see datopian/flowershow#508 (comment)
Describe the bug
HTML inside of Markdown Files needs to be rewritten in a way, that the JSX parser (as all html tags are in MDX) accepts it.
But if we do that, Obsidian is not able to display the html accordingly.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Flowershow should be able to parse html as is, so that we can use it (as Obsidian also allows it)
Desktop (please complete the following information):
Additional context
@olayway told me to create this issue, ask her for any more information if needed
The text was updated successfully, but these errors were encountered: