22 lines
441 B
Python
22 lines
441 B
Python
from talon import Context, Module
|
|
|
|
mod = Module()
|
|
ctx = Context()
|
|
|
|
ctx.matches = r"""
|
|
code.language: markdown
|
|
"""
|
|
|
|
mod.list("markdown_code_block_language", desc="Languages for code blocks")
|
|
ctx.lists["user.markdown_code_block_language"] = {
|
|
"typescript": "typescript",
|
|
"python": "python",
|
|
"code": "",
|
|
"ruby": "ruby",
|
|
"shell": "shell",
|
|
"bash": "bash",
|
|
"json": "json",
|
|
"are": "r",
|
|
"markdown": "markdown",
|
|
}
|