You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, the colon after "Type" is double escaped: Type\\: This is causing that my editor shows an additional backlash in its documentation window:
If I paste the same Markdown into a GH issue and preview it, the same additional backslash is rendered:
Summary:
Conservatively escaping everything is bad in coc.nvim which shows the markdown
to the user, and we have reports of it causing problems for other parsers.
Fixesclangd/clangd#301
Reviewers: kadircet
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D75687
mem-frob
pushed a commit
to draperlaboratory/hope-llvm-project
that referenced
this issue
Oct 7, 2022
Summary:
Conservatively escaping everything is bad in coc.nvim which shows the markdown
to the user, and we have reports of it causing problems for other parsers.
Fixesclangd/clangd#301
Reviewers: kadircet
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D75687
My editor is getting the following Markdown as part of the
textDocument/hover
payload:As you can see, the colon after "Type" is double escaped:
Type\\:
This is causing that my editor shows an additional backlash in its documentation window:If I paste the same Markdown into a GH issue and preview it, the same additional backslash is rendered:
The double backlash seems to be added at https://github.com/llvm/llvm-project/blob/c0b27c489104f6c3c055a3ac1573d05393fe32eb/clang-tools-extra/clangd/FormattedString.cpp#L42 I'm not very familiar with Markdown syntax so my question is, is it really needed to add a double backslash here or a single one would suffice? I'm deciding If this is something that should be fixed server-side or client-side. Thanks.
The text was updated successfully, but these errors were encountered: