Skip to content

luqin2007/siyuan-reference-code-block-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 51.1%
  • JavaScript 39.1%
  • Svelte 7.7%
  • SCSS 1.3%
  • PowerShell 0.8%