Commit 2545378
authored
Reflex Markdown TLC (#6085)
* Reflex Markdown TLC
* Bump to react-markdown 10.0.0, bump all plugins to latest versions
* component_map: "codemap" with "pre" for simpler handling of inline vs code block
* Add new `rx.markdown.plugin` function to allow easily loading remark and rehype plugins
* Add new `MarkdownWrapper` since the new react-markdown doesn't accept css/className
* Add `use_math`, `use_gfm`, `use_raw` and friends to customize default plugins
BREAKING: children for textual components is now a bare string instead of a list of str
* uprev to react-markdown 10.1.0
* remove markdown related packages from outdated dependencies exclusion list
* avoid blind .pop in Markdown.create
* Update test_markdown assertions
* Ensure comments are accurate1 parent 726711e commit 2545378
6 files changed
Lines changed: 227 additions & 109 deletions
File tree
- .github/workflows
- reflex/components/markdown
- tests/units/components
- markdown
- typography
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
0 commit comments