add markup syntax color for markdown

This commit is contained in:
Dongdong Zhou 2024-08-08 19:02:28 +01:00
parent cab5ddeac8
commit 36bebb6d15
5 changed files with 27 additions and 2 deletions

View File

@ -5,6 +5,7 @@
### Features/Changes
### Bug Fixes
- Fix markdown syntax highlighting
## 0.4.1

View File

@ -68,6 +68,14 @@ dim-text = "#5C6370"
"variable.other.member" = "$red"
"tag" = "$blue"
"markup.heading" = "$red"
"markup.bold" = "$orange"
"markup.italic" = "$orange"
"markup.list" = "$orange"
"markup.link.url" = "$blue"
"markup.link.label" = "$purple"
"markup.link.text" = "$purple"
"bracket.color.1" = "$blue"
"bracket.color.2" = "$yellow"
"bracket.color.3" = "$purple"

View File

@ -74,6 +74,14 @@ dim-text = "#A0A1A7"
"variable.other.member" = "$red"
"tag" = "$blue"
"markup.heading" = "$red"
"markup.bold" = "$orange"
"markup.italic" = "$orange"
"markup.list" = "$orange"
"markup.link.url" = "$blue"
"markup.link.label" = "$purple"
"markup.link.text" = "$purple"
"bracket.color.1" = "$blue"
"bracket.color.2" = "$yellow"
"bracket.color.3" = "$purple"

View File

@ -1169,8 +1169,8 @@ pub enum LapceLanguage {
extensions: &[],
comment: comment_properties!(),
tree_sitter: TreeSitterProperties {
grammar: Some("markdown"),
grammar_fn: None,
grammar: Some("markdown_inline"),
grammar_fn: Some("markdown_inline"),
query: Some("markdown.inline"),
code_glance: (DEFAULT_CODE_GLANCE_LIST, DEFAULT_CODE_GLANCE_IGNORE_LIST),
sticky_headers: &[],

View File

@ -33,6 +33,14 @@
"conceal",
"none",
"tag",
"markup.bold",
"markup.italic",
"markup.list",
"markup.quote",
"markup.heading",
"markup.link.url",
"markup.link.label",
"markup.link.text",
];
pub fn line_styles(