Commit fe33f74
committed
chore!: upgrade mdex to 0.13
If a Tableau blog uses MDEx syntax highlighting, the latest version of
MDEx has breaking changes to how syntax highlighting works and your blog
configuration must be modified for it to continue working.
There are two supported syntax highlighters: Lumis (tree-sitter) and
Syntect (Sublime Text grammars). Tableau includes the Lumis syntax
highlighter package, but it is not fully configured without modification
to the blog `config/config.exs` for selecting the appropriate syntax
highlighting NIF:
```elixir
config :mdex_native, syntax_highlighter: :lumis
config :mdex_native, syntax_highlighter: :syntect
```
The MDEx options configuration must also be updated:
```diff
render: [unsafe: true],
syntax_highlight: [
- formatter: {:html_inline, theme: "neovim_dark"}
+ engine: :lumis,
+ opts: [formatter: {:html_inline, theme: "neovim_dark"}]
],
plugins: [MDExGFM]
```
More details for each syntax highlighter can be found at
https://mdex.hexdocs.pm/lumis.html or
https://mdex.hexdocs.pm/syntect.html.1 parent 9cc5777 commit fe33f74
3 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments