Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Obsidian transclusion #685

Open
jamesramsay opened this issue Aug 2, 2021 · 0 comments
Open

Add support for Obsidian transclusion #685

jamesramsay opened this issue Aug 2, 2021 · 0 comments

Comments

@jamesramsay
Copy link
Owner

jamesramsay commented Aug 2, 2021

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

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,
},
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant