Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

209 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reference code block

中文版

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 @/ or vault://)

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.

test-embed-code-file

test-code-styler

Update

20250703 v1.0.2

  • 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

About

SiYuan plugin sample with vite and svelte

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages