Skip to content

Does not work for code blocks #33

@xarx00

Description

@xarx00

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

Expected Behavior

I added a class attribute to a mermaid block

```mermaid { .ttest }

I expect the string "ttest" to be found somewhere in the exported HTML source. As like as when I add this class e.g. to a list item. This should work according to the documentation: https://plugins.javalent.com/Markdown+Attributes/Code+Blocks+and+Block+Quotes

Current behaviour

"ttest" cannot be found anywhere in the exported HTML source. Hence I deduce that on code blocks this plugin doesn't work.

Reproduction

See Expected Behavior.
I export the HTML using the "Webpage HTML Export" plugin. (All other plugins are off.)
In the browser in the right-click menu I choose View Page Source.

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.5.8

Plugin Version

1.2.2

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions