Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add source map for every possible element in the Markdown preview#134799

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mjbvz merged 2 commits intomicrosoft:mainfromLemmingh:dev/markdown-source-map
Oct 12, 2021

Conversation

Lemmingh
Copy link
Contributor

This PRfixes#133376

Summary

We have to clean up type definitions before the main work.

  • Update markdown-it and type definitions

    • Updatemarkdown-it and its DT so that they match now.
    • Updatedompurify and its DT so that they match now.
    • Remove@types/highlight.js becausehighlight.js has its own type definitions since version 10.
    • Fix mismatches related tomarkdown-it. Note that lots ofany are removed to allow TypeScript to infer type.
  • Refresh the source map mechanism inmarkdownEngine.ts

Note onattrSet() andattrGet()

markdown-it'sToken is designed in a bad smell with no access control.

GivenRenderer.renderAttrs() and the HTML Standard, an attribute set viaToken.attrSet() should still work even in extreme cases.

The use ofToken.attrGet() is for a similar reason.

Copy link
Collaborator

@mjbvzmjbvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM! The new logic seem good and thanks for the additional cleanup!

@mjbvzmjbvz merged commitd3ceb35 intomicrosoft:mainOct 12, 2021
@mjbvz
Copy link
Collaborator

Will be in the next insiders build and schedule to ship in stable as part of VS Code 1.62

@mjbvzmjbvz added this to theOctober 2021 milestoneOct 12, 2021
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsNov 27, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mjbvzmjbvzmjbvz approved these changes

Assignees

@mjbvzmjbvz

Labels
None yet
Projects
None yet
Milestone
October 2021
Development

Successfully merging this pull request may close these issues.

Add source map for every block-level element in the Markdown preview
2 participants
@Lemmingh@mjbvz

[8]ページ先頭

©2009-2025 Movatter.jp