Commit 2fd919c
committed
feat(core): highlight markdown code fences
Parse Markdown fenced code blocks as Tree-sitter injections and merge their spans back into the outer document. Resolve fence languages through the highlighter registry so aliases and registered extensions can target supported parsers.
Prefer narrower, later style spans during rendering so injected syntax can override broad Markdown raw-block styling.1 parent f6b95a6 commit 2fd919c
2 files changed
Lines changed: 317 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4594 | 4594 | | |
4595 | 4595 | | |
4596 | 4596 | | |
4597 | | - | |
4598 | | - | |
| 4597 | + | |
| 4598 | + | |
| 4599 | + | |
| 4600 | + | |
| 4601 | + | |
| 4602 | + | |
| 4603 | + | |
| 4604 | + | |
| 4605 | + | |
| 4606 | + | |
| 4607 | + | |
| 4608 | + | |
| 4609 | + | |
| 4610 | + | |
| 4611 | + | |
| 4612 | + | |
| 4613 | + | |
4599 | 4614 | | |
4600 | 4615 | | |
4601 | | - | |
| 4616 | + | |
4602 | 4617 | | |
4603 | 4618 | | |
4604 | 4619 | | |
| |||
4805 | 4820 | | |
4806 | 4821 | | |
4807 | 4822 | | |
| 4823 | + | |
| 4824 | + | |
| 4825 | + | |
| 4826 | + | |
| 4827 | + | |
| 4828 | + | |
| 4829 | + | |
| 4830 | + | |
| 4831 | + | |
| 4832 | + | |
| 4833 | + | |
| 4834 | + | |
| 4835 | + | |
| 4836 | + | |
| 4837 | + | |
| 4838 | + | |
| 4839 | + | |
| 4840 | + | |
| 4841 | + | |
| 4842 | + | |
| 4843 | + | |
| 4844 | + | |
| 4845 | + | |
| 4846 | + | |
| 4847 | + | |
| 4848 | + | |
| 4849 | + | |
| 4850 | + | |
| 4851 | + | |
| 4852 | + | |
| 4853 | + | |
| 4854 | + | |
| 4855 | + | |
| 4856 | + | |
| 4857 | + | |
| 4858 | + | |
| 4859 | + | |
| 4860 | + | |
| 4861 | + | |
| 4862 | + | |
| 4863 | + | |
| 4864 | + | |
4808 | 4865 | | |
4809 | 4866 | | |
4810 | 4867 | | |
| |||
0 commit comments