Skip to content

``` and <code> code blocks ignore indentation #19

@akien-mga

Description

@akien-mga

Hi there,

We're using this plugin on Godot Engine's Q&A, and I've noticed that the behaviour of the ``` and <code> tags seems to ignore indentation, which is quite annoying when typing code with strict indentation rules like Python or GDScript.

Some example:
image      image      image

On the other hand <pre> and an indentation of the whole block work fine:
image

I reckon that this is probably not a bug per-se, but just that <code> and any number of backquotes are interpreted as inline code markers, and such inline code does not support indentation or multiple lines code blocks. However many users are used to GitHub's Flavoured Markdown and how it use triple backquotes to delimit pre-formatted code blocks. It would be nice to have support for something similar in q2a-markdown-editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions