Skip to content

First Paragraph style applied after a custom-style paragraph (Markdown to .odt export) #11440

@Cikmac

Description

@Cikmac

Info

The problem occurs when exporting from Markdown to .odt text file.

NB: This does not happen when exporting from Markdown to .docx.

Pandoc version: 3.8.3

Description

When using divs to set a custom-style for a paragraph, in the odt document the following paragraph is automatically styled in the 'First Paragraph' style, even though it should be styled as 'Body Text', since it's actually not the first paragraph in the text.

The following is an example of what the markdown would look like:

This is a paragraph in Markdown (1st)

:::{custom-style = "My Custom Style"}
This is a paragraph in Markdown (2nd)
:::

This is a paragraph in Markdown (3rd)

This is a paragraph in Markdown (4th)

In the former example the (3rd) paragraph is styled as 'First Paragraph' in the odt file (even though it should be defaulted to body text), while the (4th) paragraph is styled as 'Body Text', as it should.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions