hedgedoc/src/components/editor
Erik Michelson 9e6edb0aeb
Add blockquote extras ([name=...], [time=...], [color=...]) (#249)
* Added regexes to replace name and time extras

* Added [color=#abc] replacements inside of blockquotes

This works with the following "algorithm":
1. Transform any [color=]-Tags with a valid css color into a codimd-quote-options element.
2. While transforming blockquotes, check if one of their paragraphs contains a codimd-quote-options element. If multiple are found, only the first one will be used.
3. Remove the codimd-quote-options element and set the border-left-color of the blockquote appropriately.

* Added correct CSS styling of blockquote extras

* Added tag icon when [color=...] is used outside a blockquote

In version 1.6 of CodiMD the [color=...] tag renders a tag-icon in the specified color when used outside of a blockquote paragraph.

* Added changelog entry

* Flip if-else in quote-options for better readability

* Flip another if-else in quote-options for better readability
2020-06-22 23:37:20 +02:00
..
editor-window Change font settings for editor 2020-06-20 19:22:07 +02:00
markdown-renderer Add blockquote extras ([name=...], [time=...], [color=...]) (#249) 2020-06-22 23:37:20 +02:00
task-bar Add editor split component (#198) 2020-06-13 01:22:27 +02:00
editor.tsx Add blockquote extras ([name=...], [time=...], [color=...]) (#249) 2020-06-22 23:37:20 +02:00