-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Add support for lang
directive
#542
Comments
Currently Marp CLI uses the locale of running OS as the value for the Line 293 in d0cee50
Unlike similar options for metadata, the CLI argument
However, considering the appropriate purpose of "document-level language setting", adding |
This issue may be best drilling down to Marp Core, and even Marpit, the framework to build a core. The If there were |
Thank you very much @yhatt! |
In order to use the hyphens CSS property as mentioned in marp-team/marp-vscode#430, a new
lang
global directive must be implemented.A starting point would be https://github.com/marp-team/marp-cli/blob/d0cee502f2785e1a2f998f3afc831849e3f6efc9/src/marp-cli.ts and https://github.com/marp-team/marp-cli/blob/d0cee502f2785e1a2f998f3afc831849e3f6efc9/src/engine/meta-plugin.ts by adding a
lang
directive.I see at
marp-cli/src/templates/layout.pug
Line 2 in d0cee50
lang
is set here. If I understand it correctly, this value is passed by the--lang
argument of the CLI where a new global directive should also set this value if set.Please correct me if I'm wrong. I would be glad to implement this feature if you are interested.
The text was updated successfully, but these errors were encountered: