-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Warn deprecated dollar prefix in global directives #70
Conversation
They are no longer supported in the latest CLI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checks are passed ✅
doc.uri, | ||
new Range(diag.range.start, diag.range.start.translate(0, 1)) | ||
) | ||
// act.isPreferred = true // TODO: Require VS Code >= v1.32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isPreferred
is marked as proposal in VS Code v1.31, the least version Marp supported.
https://code.visualstudio.com/updates/v1_31#_auto-fix-and-codeactionispreferred
We should consider bump the least version in another PR.
Updates in the upstream package will break existing Markdown slides that has used
$
prefix for global directive. (marp-team/marpit#182)Marp CLI had a time to see warnings for 3 weeks so user could deal with this deprecation. We have already outputted warnings in the developer console of VS Code too, but almost users would have not any chance to notice that.
In Marp for VS Code, we will keep supporting
$
prefix against upstream packages, and output warnings through VS Code's Diagnostic API.Added diagnostic support might help migration from the old Marp app too. (marp-team/marp-cli#85)
ToDo
dollarPrefixForGlobalDirectives
: Add dollarPrefixForGlobalDirectives option marp-core#104)$theme
$style
$headingDivider
$size
(>= v0.13.1)dollarPrefixForGlobalDirectives
option to engine: Require update)marp
directive astrue
$