logseq/mldoc

URL Schemes in Logseq blocks will be broken after converting to html

why8023 opened this issue · 1 comments

This original contents in Logseq, which contains the MarginNote URL Schemes:
image
After I select these blocks and copy them as HTML, they will be:
image
there are both missing two slash.

@cnrpman Issue can be closed: Logseq 0.9.1 and Mldoc 1.5.3 parses url correctly:

% echo 'marginnote3app://note/8B11CF4A-DE3C-4A71-84G8-ODF5EE2EBO4C' | npx mldoc convert -f ast
...
Reading data from stdin...
Parsing file...
Converting to ast
Writing data to stdout...
[
    [
        "Link",
        {
            "url": [
                "Complex",
                {
                    "protocol": "marginnote3app",
                    "link": "note/8B11CF4A-DE3C-4A71-84G8-ODF5EE2EBO4C"
                }
            ],
            "label": [
                [
                    "Plain",
                    "marginnote3app://note/8B11CF4A-DE3C-4A71-84G8-ODF5EE2EBO4C"
                ]
            ],
            "full_text": "marginnote3app://note/8B11CF4A-DE3C-4A71-84G8-ODF5EE2EBO4C",
            "metadata": ""
        }
    ],
    [
        "Break_Line"
    ]
]

DONE!