Markdown to XWiki Converter
A VS Code extension that converts Markdown files to XWiki format with live preview capabilities.

Features
- 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
Usage
Converting Files
- Markdown to XWiki: Right-click any
.md file → "Convert to XWiki"
- XWiki to Markdown: Right-click any
.xwiki file → "Convert to Markdown"
Live Preview
- Open any
.xwiki file
- 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
Supported Conversions
| 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](https://github.com/travelingbear/markdown-to-wiki/blob/HEAD/url) |
[[text>>url]] |
| Images |
 |
[[image:url]] |
| Lists |
- item |
* item |
| 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(%%) |
Installation
- Download the latest
.vsix file 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 (or Cmd+Shift+P on Mac)
- Type "Extensions: Install from VSIX"
- Select the downloaded
.vsix file
Configuration
You can configure where converted files are saved:
- Open VS Code Settings (
Ctrl+, or Cmd+,)
- 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/converted or C:\converted) to save all converted files in that location
Requirements
Release Notes
See CHANGELOG.md for detailed release information.
Contributing
- Clone the repository
- Run
npm install to install dependencies
- Run
npm run compile to build the extension
- Press
F5 to launch a new VS Code window with the extension loaded
License
This project is licensed under the MIT License.
| |