mayurankv / Obsidian-Code-Styler

A plugin for Obsidian.md for styling codeblocks and inline code
Other
260 stars 8 forks source link

Bug: Indented Codeblocks are not dealt with properly #7

Open mayurankv opened 1 year ago

mayurankv commented 1 year ago

Describe the bug

Codeblocks created by indentation are currently not correctly parsed in either reading or editing mode.

Steps to reproduce

Create a codeblock by indentation (indent 4 spaces and then type code).

    this is code

Expected behaviour

Indented codeblocks cannot have parameters set and are decorated the same as a codeblock with no parameters in reading and editing mode.

Current behaviour

Currently adding a line such as ```python fold ln:50 has these parameters applied in reading mode whilst they should not ideally. Indented codeblocks are not styled at all in editing mode but they still recieve headers if they have codeblock delimiters.

Environment

Screenshots

Additional context

mayurankv commented 1 year ago

Use cm-hmd-indented-code to style in editing mode.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 60 days with no activity.