gonzalezreal / swift-markdown-ui

Display and customize Markdown text in SwiftUI
MIT License
2.25k stars 268 forks source link

[Feature Request] Support InlineSyntax #96

Closed singularity-s0 closed 1 year ago

singularity-s0 commented 2 years ago

This library will become much more powerful if it adds support for user-defined custom syntaxes (inline syntax).

To define these syntaxes, the developer will:

  1. specify a list of Regular Expressions that matches the corresponding syntax block in the document,
  2. then specify the View that handles each block.

If you are familiar with Flutter (another declarative UI framework), flutter_markdown provides a good example of how this works.

gonzalezreal commented 2 years ago

Thank you for the feedback! I will have a look at the doc you provided.