markdown preview: highlight code blocks (#9087)
 Release Notes: - Added syntax highlighting to code blocks in markdown preview - Fixed scroll position in markdown preview when editing a markdown file (#9208)
This commit is contained in:
parent
e5bd9f184b
commit
d362588055
9 changed files with 264 additions and 126 deletions
|
@ -68,6 +68,7 @@ pub struct ParsedMarkdownCodeBlock {
|
|||
pub source_range: Range<usize>,
|
||||
pub language: Option<String>,
|
||||
pub contents: SharedString,
|
||||
pub highlights: Option<Vec<(Range<usize>, HighlightId)>>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue