This extention is used to merge Markdown files from various locations to one file.
- Merge single active md file using the MdMerge command. the file must include the following lines:
- !import[/path/from/root/import.md] can be anywhere in the file
- !export[/path/from/root/export.md] MUST BE the last line
- Merge all files from select folders using the MdMergeAll command
- Add the folders in your workspaces settings.json
{ "MdMerge.FolderPaths": [ "/ToPublish" ] }
- Run the command from anywhere in your workspace
- The commands may be run either from the command line (CTRL+SHIFT+P) or from the context menu (Right Click) while editing an .md file
This extension contributes the following settings:
MdMerge.FolderPaths
: Contains the list of folders to go through with the MdMergeAll command
For more detailed examples, please look at the Markdown Test Files folder. It contains examples for both MdMerge and MdMergeAll.
See Change Log here