kovetskiy / mark

Sync your markdown files with Confluence pages.
https://samizdat.dev
Other
972 stars 143 forks source link

Blockquote note/warn macros not working #446

Open markstickley opened 1 month ago

markstickley commented 1 month ago

What happened?

When writing warn and note macros, I'm seeing some incorrect behaviour. Info seems to be OK.

E.g.

> Warn
> This is a styled blockquote using the info macro

What did you expect to happen?

I expected to see a styled blockquote in Confluence using the relevant macro. Using Note seems to generate a Warn style; using Warn generates an error

> Note
> This is a test

generates:

image
> Warn
> This is a test

generates:

image

How can we reproduce the behavior you experienced?

Paste the above examples into a markdown document and convert / publish to confluence.

Further Information (please complete the following information)

Logs or other output

% mark -c ~/.mark -f ./developer-guide/README.md
2024-05-23 16:54:26.041 INFO  processing developer-guide/README.md
2024-05-23 16:54:27.004 INFO  page will be stored under path: Overview >  Developer Guide
2024-05-23 16:54:27.203 INFO  the leading H1 heading will be excluded from the Confluence output
2024-05-23 16:54:27.959 INFO  edit locked on page "Developer Guide" by user "email@domain.com" to prevent manual edits
2024-05-23 16:54:28.362 INFO  page successfully updated: https://mysite.atlassian.net/wiki/spaces/~123456789/pages/3227386973/Developer+Guide
https://mysite.atlassian.net/wiki/spaces/~123456789/pages/3227386973/Developer+Guide

Additional context

Config file:

username = "email@domain.com"
password = "API key"
base-url = "https://mysite.atlassian.net/wiki"
title-from-h1 = true
drop-h1 = true
space = "~123456789"
edit-lock = true

Edit: The same is happening when using the box macro mentioned in the docs with the addition of the Tip version looking like Confluence's "Success" info panel.