iamjackg / md2cf

Convert and upload Markdown documents to Confluence
MIT License
93 stars 52 forks source link

Feature Request: Add labels to published pages #41

Closed jannismain closed 2 years ago

jannismain commented 2 years ago

Extend yaml frontmatter parsing to read labels key:

---
title: Page Title
labels: [label1, label2]
---
...

Apply those labels to confluence page after creation. When updating pages, I would probably delete existing labels from the page and apply those listed in yaml frontmatter, to ensure they are in sync with the labels listed in the markdown file.

jannismain commented 2 years ago

For my personal markdown writing preference, I would also like to support listing labels in the document like this

# Page Title

#label1 #label2

This page has labels.

However, this is custom markdown syntax. How do you feel about introducing support for something like this in md2cf?

iamjackg commented 2 years ago

Custom markdown syntax is kinda messy with Mistune, it's something we could consider in the future, but for now I'd rather keep these in the frontmatter if that's okay.