pub struct MarkdownLanguage {Show 22 fields
pub allow_math: bool,
pub allow_tables: bool,
pub allow_task_lists: bool,
pub allow_strikethrough: bool,
pub allow_footnotes: bool,
pub allow_front_matter: bool,
pub allow_definition_lists: bool,
pub allow_subscript: bool,
pub allow_autolinks: bool,
pub allow_abbreviations: bool,
pub allow_indented_code_blocks: bool,
pub allow_html: bool,
pub allow_hard_line_breaks: bool,
pub allow_gfm_autolinks: bool,
pub allow_headings: bool,
pub allow_lists: bool,
pub allow_blockquotes: bool,
pub allow_fenced_code_blocks: bool,
pub allow_horizontal_rules: bool,
pub allow_setext_headings: bool,
pub allow_html_tagfilter: bool,
pub allow_xml: bool,
}Expand description
Configuration for the Markdown language features.
Fields§
§allow_math: boolEnable math formulas.
Example: $a^2 + b^2 = c^2$ or $$E = mc^2$$
allow_tables: boolEnable tables.
Example:
| Header |
|---|
| Cell |
allow_task_lists: boolEnable task lists.
Example: - [ ] Task or - [x] Done
allow_strikethrough: boolEnable strikethrough.
Example: ~~deleted~~
allow_footnotes: boolEnable footnotes.
Example: [^1] and [^1]: Note
allow_front_matter: bool§allow_definition_lists: boolEnable definition lists.
Example: Term : Definition
allow_subscript: boolEnable superscript and subscript.
Example: ^sup^ or ~sub~
allow_autolinks: boolEnable autolinks.
Example: <https://example.com>
allow_abbreviations: boolEnable abbreviations.
Example: *[HTML]: HyperText Markup Language
allow_indented_code_blocks: boolEnable indented code blocks.
Example: code block
allow_html: boolEnable inline HTML tags.
Example: <div> or <!-- comment -->
allow_hard_line_breaks: boolEnable hard line breaks.
Example: Two spaces at the end of a line or a backslash.
allow_gfm_autolinks: boolEnable GFM-style autolinks.
Example: https://example.com
allow_headings: boolEnable ATX headings.
Example: # Heading
allow_lists: boolEnable lists.
Example: - Item or 1. Item
allow_blockquotes: boolEnable blockquotes.
Example: > Quote
allow_fenced_code_blocks: boolEnable fenced code blocks.
Example: ```rust
allow_horizontal_rules: boolEnable horizontal rules.
Example: --- or ***
allow_setext_headings: boolEnable Setext headings.
§Example: Heading
allow_html_tagfilter: boolEnable GFM Tagfilter.
Filters certain HTML tags like <script>.
allow_xml: boolEnable XML/TSX syntax.
Example: <Component />
Implementations§
Trait Implementations§
Source§impl<'config> Builder<MarkdownLanguage> for MarkdownBuilder<'config>
impl<'config> Builder<MarkdownLanguage> for MarkdownBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<MarkdownLanguage>,
) -> BuildOutput<MarkdownLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<MarkdownLanguage>, ) -> BuildOutput<MarkdownLanguage>
Source§impl Clone for MarkdownLanguage
impl Clone for MarkdownLanguage
Source§fn clone(&self) -> MarkdownLanguage
fn clone(&self) -> MarkdownLanguage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MarkdownLanguage
impl Debug for MarkdownLanguage
Source§impl Default for MarkdownLanguage
impl Default for MarkdownLanguage
Source§impl<'de> Deserialize<'de> for MarkdownLanguage
impl<'de> Deserialize<'de> for MarkdownLanguage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for MarkdownLanguage
impl Hash for MarkdownLanguage
Source§impl HoverProvider<MarkdownLanguage> for MarkdownHoverProvider
Available on crate feature lsp only.
impl HoverProvider<MarkdownLanguage> for MarkdownHoverProvider
lsp only.