christopher-ramirez / secretary

Take the power of Jinja2 templates to OpenOffice and LibreOffice.
Other
190 stars 48 forks source link

Markdown filter ignores format from template #68

Closed Tagirijus closed 5 years ago

Tagirijus commented 5 years ago

Hi there,

I am not sure if this might be related to https://github.com/christopher-ramirez/secretary/issues/67

When using the |markdown filter, the output text in the document ignores the formatting from the odt-template file. It seems like it is using the default font and size instead.

christopher-ramirez commented 5 years ago

Hello,

The markdown filter indeed uses the document default text format for its output. What kind of format you would like to inherit to the outputted text?

Tagirijus commented 5 years ago

Hey Christopher, I expected that the format from the variables position in the template would be used - like it is, when you do not use the markdown filter.

christopher-ramirez commented 5 years ago

I understand that what you say is what would expect. But for a markdown output it's technically challenging to keep the format because the how Libreoffice internally manages the styles in the document. Most of the document is handled by multiple styles with random names. Is some like a CSS architecture.

Tagirijus commented 5 years ago

I see, what a bummer. Thanks for your reply, though!