Add custom markup language
- Dominant language
- Rust
- Stars
- 4.8k
- Forks
- 270
- Avg merge
- 5d 19h
- Merged PRs (30d)
- 2
Description
In order to give styled string to a `TextView`, we can currently parse Markdown text, which only supports bold and italic effects.
It would be nice to have another markup language available, supporting:
* Effects: bold, italic, underline, inverted-color
* Colors: foreground, background
We may take inspiration from existing languages like BBCode or others.
Possible languages:
* BBCode-inspired with extension for background color
```
[b]Bold and [i]italic[/i] text![/b]
[color="red"]Red text [background=#123456]with background color![/background][/color]
```
* HTML subset (but which subset?)
```html
Bold and italic text! Or using different tags?
Red text with background color!
```
* LateX-inspired
```latex
\bold{Bold and \italic{italic} text!}
\color{red}{Red text! with \colorbox{#123456}{background color!}}
```
* Other?
Contributor guide
Assessment
This issue has not been assessed yet.