kovetskiy / mark

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

csv-table macro - is it possible to get this working? #119

Open Thomas-Haase opened 3 years ago

Thomas-Haase commented 3 years ago

I' m still working with 5.9, Is it possible to get the csv-table macro working? I'm trying this:

<!-- Macro: :CSV:
     Template: ac:csv-table
     Attachment: 'foo.csv'
     Source: 'attachment'
     Separator: ';' -->

I get the following message:

2021-09-22 13:58:05.361 FATAL unable to load template
                              └─ unable to read template file
                                 ├─ open ac:csv-table: no such file or directory
                                 └─ name: ac:csv-table
Skeeve commented 2 years ago

Do you happen to have a documentation of the macro? In our confluence it does not exist.

Thomas-Haase commented 2 years ago

the relevant documention can be found here:

Skeeve commented 2 years ago

Unfortunately it does not describe the <ac:… part and I have no confluence which shows me the source.

Thomas-Haase commented 2 years ago

is this example from my confluence instance helpful? I have taken it from the source view.

<p>
  <ac:structured-macro ac:macro-id="f6722d0e-4454-4f0d-a7ba-31935200627b" ac:name="csv-table" ac:schema-version="1">
    <ac:parameter ac:name="password"/>
    <ac:parameter ac:name="attachment">Release_Count_Ext.csv</ac:parameter>
    <ac:parameter ac:name="header"/>
    <ac:parameter ac:name="source">attachment</ac:parameter>
    <ac:parameter ac:name="encoding">UTF-8</ac:parameter>
    <ac:parameter ac:name="login"/>
    <ac:parameter ac:name="separator">;</ac:parameter>
  </ac:structured-macro>
</p>
Skeeve commented 2 years ago

Okay. And if you now give me the text you would want to enter, I can think about implementing something like that.

Thomas-Haase commented 2 years ago

Okay. I will make a suggestion.