Closed ludelafo closed 10 months ago
If so, the starting point would be Marp CLI rather than Marp for VS Code. Could you create an Issue in the Marp CLI repository to propose implementing lang
global directive?
https://github.com/marp-team/marp-cli/issues
Thank you very much @yhatt!
Hi Marp team!
I'm interested to use the hyphens CSS property as follow:
In order for this to work, I need to set the lang attribute.
marp-cli
defines the argumentlang
in its options. When using the command-line tool asnpx @marp-team/marp-cli@latest --lang en --pdf --output README.pdf README.md
, the hyphens are correctly rendered.I would like to add support for the
lang
directive inmarp-vscode
so the language of the document can be set:From my understanding of the codebase, the starting point would be https://github.com/marp-team/marp-vscode/blob/d9af184ed12b65bb28c0f328e250955d548ac1d1/src/directives/definitions.ts by adding a new directive such as:
Would this feature be useful for
marp-vscode
? I would be glad to implement this feature if you are interested.