Skip to content

[BUG] Code blocks are not rendered correctly #20

@erNail

Description

@erNail

Bug Report

Describe the bug

When using markdown code blocks in a comment in the component, the markdown is not rendered correctly. This is because the logic for formatting the comment to markdown removes the spaces in the beginning. So currently the codeblock is rendered with missing spaces/tabs

Reproducing the bug

Steps to reproduce the behavior:

  1. Write a code block with indentation
  2. Run labdoc generate
  3. See the rendered codeblock with missing indentation

Expected behavior

The indentation should be kept when rendering a code block.

Version

1.2.0

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