Open ManasMadrecha opened 3 years ago
@ManasMadrecha this makes sense, blockquote
will get just that node, ,
is the css equivalent of "or", and blockquote+figcaption
targets just the figure caption.
If you want to merge them when they are adjacent, you could build something like https://github.com/syntax-tree/mdast-squeeze-paragraphs for figcaptions in rehype.
Reproduction
['rehype-wrap-all', { selector: 'blockquote, blockquote+figcaption', wrapper: 'figure' }]
What is expected?
This should be converted
to this
What is happening?
This is being converted
to this
Need
Is there any way to wrap 2 siblings into one parent by this plugin. If not, is there any plugin to do so? I am using Nuxt + its Content module. Thank you