日本語
Markdown記法とBacklog記法を相互に変換するVScodeのタスク
*.mdの拡張子を持つファイルを開いて実行するとBacklog記法へ*.txtの拡張子を持つファイルを開いて実行するとMarkdown記法へ
変換対象のファイルと同じパス上に書き出されます
- Python
- ダウンロード
- VScodeで、導入したいワークスペースを開く
- ルートディレクトリに
.vscode/を作成 - その中に
mdbl.pyを入れる tasks.jsonを更新する or 入れるpython -VでPythonが実行可能かどうか確認するCTRL+SHIFT+Pでコマンドパレットを開いてウィンドウの再読み込み
- 変換したい
*.mdもしくは*.txtを開く CTRL+SHIFT+Bでタスクパレットを開く- 実行するタスクを選択
md2backlog: Output with the same filename- 変換対象と同じパス上に新規ファイルを生成します
- ファイル名は変換対象のものが引き継がれて拡張子だけ変わります
md2backlog: Output with a custom filename- 変換対象と同じパス上に新規ファイルを生成します
- 実行時、保存するファイル名の入力を促されます
md2backlog: Output as a string to the console- 変換したものをコンソールで文字列で出力します
▼ English
A VSCode task to convert between Markdown and Backlog notation.
- Running the task on a file with the
*.mdextension converts it to Backlog notation. - Running the task on a file with the
*.txtextension converts it to Markdown notation.
The converted file will be generated in the same directory as the source file.
- Python
- Download the files.
- Open the target workspace in VSCode.
- Create a
.vscode/directory in the root directory. - Place
mdbl.pyinside the.vscode/directory. - Update or add the
tasks.jsonfile. - Run
python -Vto verify that Python is accessible. - Open the Command Palette with
CTRL+SHIFT+Pand reload the window.
- Open the
*.mdor*.txtfile you want to convert. - Open the Task Palette with
CTRL+SHIFT+B. - Select the task you want to run:
md2backlog: Output with the same filename- Generates a new file in the same directory as the source file.
- Retains the original filename, changing only the extension.
md2backlog: Output with a custom filename- Generates a new file in the same directory as the source file.
- Prompts you to enter a filename upon execution.
md2backlog: Output as a string to the console- Outputs the converted text directly to the console.