Skip to content

Markdown comments render incorrectly if back tick exists in code block #29673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
trevorade opened this issue Jan 15, 2019 · 2 comments
Closed
Labels
Bug A bug in TypeScript
Milestone

Comments

@trevorade
Copy link

monaco-editor version: 0.15.6
Browser: Chrome + VS Code
OS: Linux

Steps or JS usage snippet reproducing the issue:

  1. Paste in the below snippet into https://microsoft.github.io/monaco-editor/playground.html or VS Code.
  2. View the documentation with hover or autocomplete.
  3. See that there is a stray asterisk at the bottom.
/**
```
const str = 'can`t';
```
*/
function withBackTick() {}

No stray asterisk is rendered if you have no backtick in the codeblock.

/**
```
const str = 'cant';
```
*/
function noBackTick() {}
@alexdima alexdima transferred this issue from microsoft/monaco-editor Jan 31, 2019
@mjbvz mjbvz assigned mjbvz and unassigned jrieken Feb 1, 2019
@mjbvz mjbvz transferred this issue from microsoft/vscode Feb 1, 2019
@mjbvz mjbvz removed their assignment Feb 1, 2019
@mjbvz
Copy link
Contributor

mjbvz commented Feb 1, 2019

Seems related to #23517

@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Feb 5, 2019
@RyanCavanaugh RyanCavanaugh added this to the Future milestone Feb 5, 2019
@sandersn sandersn removed their assignment Jan 7, 2020
@mjbvz
Copy link
Contributor

mjbvz commented Jan 29, 2020

Seems fixed for me with TS 3.7.5:

Screen Shot 2020-01-29 at 2 59 59 PM

@mjbvz mjbvz closed this as completed Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript
Projects
None yet
Development

No branches or pull requests

5 participants