Skip to content

Comments: preview and final version support different variant of Markdown (eg. fenced code blocks) #3

@hadrava

Description

@hadrava

Hi,

if you use fenced code blocks (separated by three backticks ```) in the comments, everything seems to be fine in the preview. But it does not work when after you add that comment.

WebTaskSubmitter uses two different parsers of Markdown. JavaScript
version is used for preview. Perl version renders the final version.
These two parsers produce significantly different output. So the
preview function does not serve its purpose.

Perl version is much more similar to original implementation:
https://daringfireball.net/projects/markdown/
and does not support fenced code blocks. Unfortunately fenced code
blocks are quite common in Markdown examples and tutorials.

It is not necessary to have both parsers completely same. They
should at least agree on basic constructions.

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