Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(parser): custom substitutions on paragraphs (#749)
Using multiple substitutions to parse the paragraph content and support custom substitutions via the `subs` attribute. Some grammar rules have been simplified. For example, the content of a quoted text can only be other quoted texts or plain characters. Using "placeholder" elements to support parsing of complex elements in which previously elements were identified. For example, a link may contain quoted text as attributes, quoted test may contain special characters, etc. Also, introducing a new `ElementRole` type, since attributes may contain special characters which would be rendered differently, depending on the backend. However, this may need more work in the future (expand to other attributes with something generic?) Sadly, all these changes also have an impact on the performances, so further investigation may be required, to see if optimizations can be found. Fixes #597 Signed-off-by: Xavier Coulon <[email protected]>
- Loading branch information