rasendubi/uniorg

Line Breaks In Links

Closed this issue ยท 3 comments

Linebreaks in link descriptions do not get parsed properly. It works in Emacs (v28, at least).

Input

[[www.something.com][line1
line2]]

Output

        {
          "type": "paragraph",
          "affiliated": {},
          "contentsBegin": 0,
          "contentsEnd": 34,
          "children": [
            {
              "type": "text",
              "value": "[[www.something.com][line1\nline2]]"
            }

Expected Output

          {
              "type": "link",
              "format": "bracket",
              "linkType": "fuzzy",
              "rawLink": "www.something.com",
              "path": "www.something.com",
              "contentsBegin": 21,
              "contentsEnd": 32,
              "children": [
                {
                  "type": "text",
                  "value": "line1 line2"
                }
              ]
            }

thanks! fixed in 547b8f9 and published as 0.1.19

Dang, that was the fastest fix I've seen to any issue. ๐Ÿ‘

haha, thanks ๐Ÿ˜„ ping back if that doesn't work or you have any other issue