logseq/mldoc

bug: single right bracket in org link label

PoiScript opened this issue · 1 comments

Single right bracket in label is not rendering properly:

Screen Shot 2021-08-27 at 1 13 53 PM

It happens because the parser is now taking every character until it reaches ] and checks if the remaining part starts with ]]:

let label_part = take_while (fun c -> c <> ']') <* string "]]" in

I think the correct way should be taking every character until it reaches ]], something likes let label_part = take_until "]]".

Finally, thank you for brilliant job! Logseq is really an awesome tool.

hi @PoiScript , thanks for reporting! Just sent a fix PR