Skip to content

Bug in new markdown rendering #99

Open
@garazdawi

Description

@garazdawi

Describe the bug

In the new markdown rendering there is an issue when broken markdown is written.

To Reproduce**

-module(foo).
-moduledoc """

```erlang
test
``

""".

test() -> ok.

Note that the erlang code segment is not terminated properly, so it is not a code segment at all. This causes the rest of the module to be interpreted as markdown.

Expected behavior

I would have expected the markdown parser to terminate at the """ which is where the triple quoted string ends.

Image

Actual behavior

Image

Context

  • ELP Version (output of elp version): 0.36.0
  • Editor used: VS Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions