This extension consists of snippets and replacement functionalities to assist in the creation of multi-language Markdown documents.
Features
These commands are activated for the active selection range in the Markdown document or in the Explorer context menu.
Command
Action
multilang-md: Activate ja blocks
Activates Japanese blocks.
multilang-md: Activate en blocks
Activates English blocks.
multilang-md: Activate detail blocks
Activates detailed blocks.
multilang-md: Dectivate detail blocks
Deactivates detailed blocks.
multilang-md: Insert lang snippet
Inserts a language-switching snippet.
multilang-md: Insert details snippet
Inserts a detail-switching snippet.
multilang-md: Copy Published html Path...
Copies the path to the published local HTML file. Appears in Explorer context menu for .md, .yaml, or .json files under mdRoot.
multilang-md: Copy Published URL...
Copies a publication-ready URL based on git origin and configuration. Appears in Explorer context menu for .md, .yaml, or .json files under mdRoot.
Copy Published html Path... behavior:
Only shown when:
The file extension is .md, .yaml, or .json
.vscode/pub_markdown.yaml exists in the workspace
The file resides under the directory specified by pubRoot: and mdRoot: in the config
On click:
Shows a QuickPick menu with {lang} and {lang}-details based on lang: in the config
Constructs and copies a path to the published local HTML file
Copy Published URL... behavior:
Only shown when:
The file is tracked in a Git repository
The file extension is .md, .yaml, or .json
.vscode/pub_markdown.yaml exists in the workspace
The file resides under the directory specified by mdRoot: in the config
On click:
Shows a QuickPick menu with {lang} and {lang}-details based on lang: in the config
Constructs and copies a URL like: https://github.com/user/repo/pages/ja-details/html/a/b/c.htmlhttp://gitbucket.local/user/repo/pages/ja-details/html/a/b/c.html
Known Issues
Assigning shortcut keys.
Cannot fully filter by mdRoot statically in context menu due to VSCode limitations.
Release Notes
2023/12/17 v0.0.1
Initial release with language block activation and snippet insertion.
2025/06/03 v0.0.4
Added "Copy Published URL..." Explorer menu command.
2025/06/24 v0.0.5
Added "Copy Published html Path..." Explorer menu command.