-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 plugin wraps the initial content in a code block #7864
Comments
Could be due to the fact that the content of the element to be replaced is indented. Like this:
Instead of this:
The latter is correct β it's what a templating system / backend would usually output. The former is what you'd write by hand, though. Unfortunately, I can imagine more people stumbling upon this and it's also realistic for the backend to produce the former, indented form in some situations. The right place to fix it (if I'm right about the issue) would be inside the function that reads HTML from the element to be replaced with the editor. However, it's not that obvious what it should do as whatever it trims... may be incorrect. This is β it may trim an indentation that was supposed to be there if the editor consisted only of a code block. Therefore, documenting it somewhere that when using a markdown you probably shouldn't even use the "replace an element" form and instead promoting the |
You're right, this is the case. After removing indentation, it renders properly in the editor. |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
A follow-up of #7859 (comment).
π Provide detailed reproduction steps (if any)
βοΈ Expected result
β Actual result
If you'd like to see this fixed sooner, add a π reaction to this post.
The text was updated successfully, but these errors were encountered: