flexmark-java icon indicating copy to clipboard operation
flexmark-java copied to clipboard

Support Delimited Node with a combination of opening and closing characters

Open mihirrai opened this issue 4 years ago • 1 comments

I've been trying to build a custom extension for reddit's spoiler markdown tag.

It is in the pattern of >!some text!<. However, while implementing the DelimiterProcessor I can't use the combination of string tags as it requires a character in opening and closing.

I've also been looking into InlineParserExtension, but I feel since it is a delimited node, we should have a support for the same.

Any help would be appreciated!

mihirrai avatar Jan 05 '22 23:01 mihirrai

Delimited nodes use the same character(s) for opening and closing.

Nodes that have special characters such as ><[] require special handling. I will add a sample for this shortly.

vsch avatar Jan 24 '22 11:01 vsch