Make Siyuan compatible with Obsidian embed-code-file and code-styler plugin. The plugin facilitates the transfer of Obsidian notes.
Notice:
- Does not support reference block ( code-styler [] )
- Does not support writing the title on the side of ``` , use
title
- Does not support high-lighting hl attribute
- Does not support relative paths (code-styler paths starting with
.
), only support network addresses and relative paths (starting with@/
orvault://
)
Code blocks created in Siyuan need to be reloaded to display the referenced content.
The referenced code blocks are read-only, and you can switch between edit and preview pages through the top-right edit and preview buttons.
- Display path when mouse hovering over title
- Copy (browser, mobile, etc.) or open (desktop) code files when clicking titles
- Display error message when loading fails