A VS Code extension that converts Markdown files to XWiki format with live preview capabilities.
- Bidirectional Conversion: Convert between Markdown and XWiki formats
- Live Preview: Real-time XWiki preview with clean, readable styling
- Syntax Highlighting: Complete XWiki language support with syntax highlighting
- Context Menu Integration: Right-click conversion from file explorer
- Enhanced XWiki Support: Advanced formatting, macros, colored text, and more
- Auto-completion: Smart bracket matching and auto-closing pairs for XWiki syntax
- Markdown to XWiki: Right-click any
.mdfile → "Convert to XWiki" - XWiki to Markdown: Right-click any
.xwikifile → "Convert to Markdown"
- Open any
.xwikifile - Click the preview icon in the editor title bar
- View rendered XWiki content in a side panel
- Live updates: Preview automatically refreshes as you type!
- Scroll sync: Preview scrolls to match your editor position
| Element | Markdown | XWiki |
|---|---|---|
| Headers | # Header |
= Header = |
| Bold | **text** |
**text** |
| Italic | *text* |
//text// |
| Strikethrough | ~~text~~ |
--text-- |
| Underline | <u>text</u> |
__text__ |
| Superscript | <sup>text</sup> |
^^text^^ |
| Subscript | <sub>text</sub> |
,,text,, |
| Code | `code` |
##code## |
| Code Block | lang ``` |
{{code language="lang"}}{{/code}} |
| Monospace | `text` |
{{monospace}}text{{/monospace}} |
| Links | [text](url) |
[[text>>url]] |
| Images |  |
[[image:url]] |
| Lists | - item |
* item |
| Tables | | cell | |
| cell | |
| Blockquotes | > text |
> text |
| Info Box | > **Info:** text |
{{info}}text{{/info}} |
| Warning Box | > **Warning:** text |
{{warning}}text{{/warning}} |
| Error Box | > **Error:** text |
{{error}}text{{/error}} |
| Horizontal Rule | --- |
---- |
| Line Break | (two spaces) |
\\ |
| Colored Text | <span style="color:red">text</span> |
(% style="color:red" %)text(%%) |
- Download the latest
.vsixfile from releases (you can also download manually in https://marketplace.visualstudio.com/items?itemName=franciscofernandes.md-xwiki-converter) - Open VS Code
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Type "Extensions: Install from VSIX"
- Select the downloaded
.vsixfile
You can configure where converted files are saved:
- Open VS Code Settings (
Ctrl+,orCmd+,) - Search for "Markdown to XWiki"
- Set output folders:
- XWiki Output Folder: Where .xwiki files are saved when converting from Markdown
- Markdown Output Folder: Where .md files are saved when converting from XWiki
- Default behavior: Leave empty to save in the same folder as the source file
- Custom folder: Enter absolute path (e.g.,
/home/user/convertedorC:\converted) to save all converted files in that location
- VS Code 1.74.0 or higher
See CHANGELOG.md for detailed release information.
- Clone the repository
- Run
npm installto install dependencies - Run
npm run compileto build the extension - Press
F5to launch a new VS Code window with the extension loaded
This project is licensed under the MIT License.
