Skip to content
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

Markdown highlighting not working directly after an HTML tag #85

Open
MangelMaxime opened this issue Dec 17, 2020 · 4 comments
Open

Markdown highlighting not working directly after an HTML tag #85

MangelMaxime opened this issue Dec 17, 2020 · 4 comments
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities
Milestone

Comments

@MangelMaxime
Copy link

  • VSCode Version: 1.52.0
  • OS Version: Windows 10

Steps to Reproduce:

  1. In a markdown file write:
<div></div>
# Title

<div></div>
**test**
  1. See that the title and the bold text are not highlighted.
    image

To fix this problem, the user can add an empty line:

image

But when using an extension which adds an anchor to titles for generating Table of Content, for example, we don't always have the control of where the HTML elements are being added.

Does this issue occur when all extensions are disabled?: Yes

@vscodebot
Copy link

vscodebot bot commented Dec 17, 2020

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@mjbvz
Copy link
Contributor

mjbvz commented Dec 17, 2020

This matches how the markdown is rendered:

Screen Shot 2020-12-17 at 10 58 46 AM

Github has the same behavior:

# Title
**test**

@mjbvz mjbvz closed this as completed Dec 17, 2020
@MangelMaxime
Copy link
Author

Sorry @mjbvz, when reporting the issue I changed the HTML element used compared to my code because I thought it was the same for all of them.

The code I used in my application is actually using anchor HTML element.

<a href="dzdz"></a>
# Title

<a href="dzdz"></a>
**test**

I just checked on VSCode and Github the markdown is being rendered correctly.

image


GitHub demo:

Title


test

End of GitHub demo


I guess there is a special case for the anchor element here.

@mjbvz mjbvz reopened this Dec 17, 2020
@mjbvz mjbvz transferred this issue from microsoft/vscode Dec 17, 2020
@mjbvz mjbvz removed their assignment Dec 17, 2020
@mjbvz mjbvz added the help wanted Issues identified as good community contribution opportunities label Dec 17, 2020
@mjbvz mjbvz added this to the Backlog milestone Dec 5, 2022
@mjbvz mjbvz added the bug Issue identified by VS Code Team member as probable bug label Dec 5, 2022
@jonathan-regeimbal
Copy link

This is still a bug today. Note that the last line beginning with *Pushed... does not have Markdown highlighting applied:

GHE Dev Terraform Plan 📖success

Show Plan
Some content
*Pushed by: @jonathan-regeimbal, Commit: `blank`, Action: `pull_request`*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities
Projects
None yet
Development

No branches or pull requests

3 participants