Open
Description
Background
We have a custom format for providing extra attributes to a piece of content.
Example format as
^[CONTENT](Attributes go here)
The reason behind using this format is because it is supported out-of-box from iOS which we do understand it is NOT part of commonmark.
After few attempts, we got there, like 90%.
Problem
We found out that when the content is in certain format, the parser takes Link parsing as higher priority and render it as
content as
This is considered as a LINK somehow
^[NoAttributes]( 'u': 'underline' ) suffix
I believe this is cause by Link parse runs first?
Help needed
Would like to get some help on this issue to see either we can:
- Change priority of parsing
- Configure Link parser to ignore
^[]()
format.
Any suggestion would be helpful.
Snippet
class AttributesDelimiterProcessor: DelimiterProcessor {
override fun getOpeningCharacter(): Char = '^'
override fun getClosingCharacter(): Char = ')'
override fun getMinLength(): Int = 1
override fun process(
openingRun: DelimiterRun?,
closingRun: DelimiterRun?
): Int {
// Seems like doesn't matter how you'd process it.
}
}
Metadata
Metadata
Assignees
Labels
No labels