kovetskiy / mark

Sync your markdown files with Confluence pages.
https://samizdat.dev
Apache License 2.0
993 stars 148 forks source link

Add support for named excerpts #316

Open chipbite opened 1 year ago

chipbite commented 1 year ago

Is your feature request related to a problem? Please describe. Support for named excerpts, which enable a confluence page to define several excerpts exposed for other pages to include.

Describe the solution you'd like The excerpt and excerpt-include macros add name attribute to support named excerpts.

Describe alternatives you've considered Only using one excerpt per page.

Ref: https://github.com/kovetskiy/mark/pull/277

mrueg commented 1 year ago

Could you provide a documentation link from Confluence where they have support for named macros? Ideally with a link to the storage format.

chipbite commented 1 year ago

This is using confluence cloud.

Editor pics

Creating named excerpts:

image

Results in a page:

image

Consuming named excerpts

Here is the page consuming the named excerpts:

image

Published it looks like this:

image

Page source

I will see if I can get the page sources as well.