Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Add support for Obsidian transclusion #685

@jamesramsay

Description

@jamesramsay

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions