diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-11 11:46:12 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-11 11:46:12 +0100 |
| commit | 8e5f446544fd147277ed2e4208c7ea793cc846a7 (patch) | |
| tree | f8b0143fb3845da6673ca1312f03ab53f0f28a50 /src/eval/library.rs | |
| parent | a9fdff244aef859449a76e5f762ee7c343a8ddcc (diff) | |
Autocompletion for raw language tags
Diffstat (limited to 'src/eval/library.rs')
| -rw-r--r-- | src/eval/library.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eval/library.rs b/src/eval/library.rs index 75787348..c37c16fd 100644 --- a/src/eval/library.rs +++ b/src/eval/library.rs @@ -55,6 +55,8 @@ pub struct LangItems { pub emph: fn(body: Content) -> Content, /// Raw text with optional syntax highlighting: `` `...` ``. pub raw: fn(text: EcoString, tag: Option<EcoString>, block: bool) -> Content, + /// The language names and tags supported by raw text. + pub raw_languages: fn() -> Vec<(&'static str, Vec<&'static str>)>, /// A hyperlink: `https://typst.org`. pub link: fn(url: EcoString) -> Content, /// A reference: `@target`. |
