erykwalder / quoth

MIT License
41 stars 1 forks source link

[Feature request] Don't show block title #15

Closed vorpalvorpal closed 1 year ago

vorpalvorpal commented 1 year ago

If I embed "test#heading" it would be nice if there was an option to not show the heading in the embed, just the content after the heading. I've tried to use the 'after:' syntax but it doesn't seem to work for headings (or I'm misunderstanding it).

test.md

foobar

# Heading

this is a test

the following embed

path: [[test#Heading]]
heading: false

would show

this is a test

rather than

# Heading

this is a test
erykwalder commented 1 year ago

To use after, the body would be:

path: [[test#Heading]]
ranges: after "# Heading"

I just tested again, so it should work, but let me know if you have troubles.

In order to not add too many features, I'd prefer to keep it to this syntax for now, since it allows for more broad functionality.

vorpalvorpal commented 1 year ago

Thanks.

I fiddled around for ages trying to get something like that to work, but somehow just completely misunderstood the documentation.