posit-dev / positron

Positron, a next-generation data science IDE
Other
1.62k stars 43 forks source link

Footnotes with only pure Chinese characters have extra underlining #3786

Open chuxinyuan opened 1 week ago

chuxinyuan commented 1 week ago

Positron Version:

Positron Version: 2024.06.1 (system setup) build 2024.06.1-27 Code - OSS Version: 1.90.0 Commit: a893e5b282612ccb2200102957ac38d3c14e5196 Date: 2024-06-26T01:33:58.809Z Electron: 29.4.0 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.19045

Steps to reproduce the issue:

  1. Create a new .pmd document.
  2. Enter the following code in the document:
这是测试文字[^ft1]。

[^ft1]: 这是脚注。

[^ft1]: 这是脚注 1 。

[^ft1]: This is footnote。

202407020622

What did you expect to happen?

Remove the underline when there are no grammatical errors.

juliasilge commented 1 week ago

Just to check, you mean a .qmd Quarto file, correct?

If so, I do think this is something that is happening just in Positron:

chuxinyuan commented 1 week ago

Just to check, you mean a .qmd Quarto file, correct?

yes