Docs · API reference · Verso.Serializers
LanguageDirectiveMap Class#
Shared alias table mapping a language token to a cell (Type, Language) pair. The tokens match
the Polyglot Notebook #! directive names, and the same set is recognized in the info
string of a fenced code block when importing Markdown notebooks.
public static class LanguageDirectiveMap
Inheritance System.Object → LanguageDirectiveMap
Fields#
Aliases Field#
Maps a language token (case-insensitive) to the cell type and kernel language it produces.
public static readonly IReadOnlyDictionary<string,(string Type,string? Language)> Aliases;
Field Value#
System.Collections.Generic.IReadOnlyDictionary<System.String,<System.String,System.String>>
Methods#
ToFenceTag(string, string) Method#
Canonical fence tag for a cell's type and language, used when a cell has no remembered opening fence line to reuse (for example a newly created cell). Falls back to the language, then the type, verbatim.
public static string ToFenceTag(string type, string? language);
Parameters#
type System.String
language System.String