Shortcodes and wrapped markdown #1635
-
I'm not sure if this is expected behaviour or not, so haven't reported an issue yet. Perhaps someone could weigh in and let me know if my expectations are correct. I have created a shortcode to wrap a block of text with a
I'm expecting the following:
But instead I get:
i.e., the markdown has not been processed. However, if I put a blank line between the opening shortcode tag and the markdown:
It works:
If I want a list in the warning, I need to put a blank line following the list too:
My
So doing nothing special. I though that I might need to process the markdown inline, but accidentally added a blank line between the opening shortcake tag and the wrapped markdown and it started to work. My question is: is this expected behaviour (defined by Markdown and the MDX Spec)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is how MDX 1 works |
Beta Was this translation helpful? Give feedback.
This is how MDX 1 works
See the responses in #1268, #1312, #1424, and #1563.
This behavior is changed in version 2 as part of #628 you can find more information on the beta here: #1041.
Improvements to documentation are welcome!