Rendering markdown inside specific sections #1022
-
I have a extension I created that creates a banner, it has 3 renderers: root banner element, banner image, and banner caption. The syntax is I've looked through the docs, but maybe I missed something. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I assume you meant this to say But it sounds like you need to recursively parse the caption contents, probably with the InlinesOnlyExtension extension enabled. |
Beta Was this translation helpful? Give feedback.
-
This is what I have:
Should text inside the Text node, not get parsed by the markdown parser? That seems to be the case. |
Beta Was this translation helpful? Give feedback.
-
Because your parser follows similar syntax to links and images, I'd recommend looking at how our CloseBracketParser handles this by processing the delimiters (syntax like |
Beta Was this translation helpful? Give feedback.
Because your parser follows similar syntax to links and images, I'd recommend looking at how our CloseBracketParser handles this by processing the delimiters (syntax like
*
and_
that wraps/delimits text). You should be able to do something similar.