Skip to content

obsidian/markdown-code-block-processor

This module provides utility functions for processing code blocks in Obsidian.

InterfaceDescription
GetCodeBlockMarkdownInfoParamsOptions for getCodeBlockMarkdownInfo.
InsertCodeBlockParamsOptions for insertAfterCodeBlock / insertBeforeCodeBlock.
RemoveCodeBlockParamsOptions for removeCodeBlock.
ReplaceCodeBlockParamsOptions for replaceCodeBlock.
FunctionDescription
getCodeBlockMarkdownInfoGets the information about a code block in a Markdown section.
insertAfterCodeBlockInserts text after the code block.
insertBeforeCodeBlockInserts text before the code block.
removeCodeBlockRemoves the code block.
replaceCodeBlockReplaces the code block.