markdown
The community/lang/markdown
directory provides support for the Markdown language in Talon. It contains two files that work together: markdown.talon
and markdown.py
.
markdown.talon
defines a set of voice commands for common Markdown syntax. This includes commands for inserting headings of various levels (level one
, heading two
, etc.), creating lists (list one
, list two
, etc), inserting code blocks with a language (typescript block
, python block
, etc.), and creating links (link
). These commands use Talon's edit
commands to insert the appropriate Markdown syntax at the current cursor position.
markdown.py
defines the context in which the markdown.talon
commands are active, which is when the code language is set to markdown. It also defines the markdown_code_block_language
list that is used by the markdown.talon
file to provide options for specifying the language of a code block, such as typescript, python, or json. This list is accessible by the user as user.markdown_code_block_language
in the .talon
file.