This repository was archived by the owner on Nov 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
This repository was archived by the owner on Nov 25, 2024. It is now read-only.
Add support for Obsidian transclusion #685
Copy link
Copy link
Open
Labels
Description
https://help.obsidian.md/How+to/Embed+files
Obsidian uses a slightly different syntax - it would be nice to add support for this too.
Possibly as simple as adding another RegExp to
Lines 11 to 36 in 7067460
| const SYNTAX = { | |
| hercule: { | |
| REGEXP: /(^[\t ]*)?:\[.*?]\((.*?)\)/gm, | |
| MATCH_GROUP: 0, | |
| INDENT_GROUP: 1, | |
| LINK_GROUP: 2, | |
| }, | |
| aglio: { | |
| REGEXP: /( *)?(<!-- include\((.*?)\) -->)/gim, | |
| MATCH_GROUP: 0, | |
| INDENT_GROUP: 1, | |
| LINK_GROUP: 3, | |
| }, | |
| marked: { | |
| REGEXP: /( *)?<<\[(.*)]/gm, | |
| MATCH_GROUP: 0, | |
| INDENT_GROUP: 1, | |
| LINK_GROUP: 2, | |
| }, | |
| multimarkdown: { | |
| REGEXP: /( *)?{{(.*)}}/gm, | |
| MATCH_GROUP: 0, | |
| INDENT_GROUP: 1, | |
| LINK_GROUP: 2, | |
| }, | |
| }; |