https://github.com/wmahfoudh/pastemarkdown
Lightweight VBA solution to paste Markdown into Microsoft Word or Outlook to avoid manual formatting!
https://github.com/wmahfoudh/pastemarkdown
blockquote bold code converter copy formatter headings italic links lists macro markdown outlook paste strikethough vba word
Last synced: 3 months ago
JSON representation
Lightweight VBA solution to paste Markdown into Microsoft Word or Outlook to avoid manual formatting!
- Host: GitHub
- URL: https://github.com/wmahfoudh/pastemarkdown
- Owner: wmahfoudh
- License: mit
- Created: 2025-05-22T11:10:13.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-05-30T12:33:45.000Z (5 months ago)
- Last Synced: 2025-07-07T04:03:22.841Z (3 months ago)
- Topics: blockquote, bold, code, converter, copy, formatter, headings, italic, links, lists, macro, markdown, outlook, paste, strikethough, vba, word
- Language: VBA
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PasteMarkdown 🚀
Lightweight VBA solution to **paste Markdown** into Microsoft Word or Outlook to avoid manual formatting! 🎉
## 🌟 Overview
PasteMarkdown is a VBA macro for Microsoft Word and Outlook that converts clipboard Markdown into formatted Office content—headings, lists, bold/italic, code blocks, links, and more.
Ideal for inserting Markdown (e.g., AI-generated text) into documents or emails without manual styling.
## 📦 Features
* **Headings**: `#` → Word Heading 1…6 styles
* **Lists**: Unordered (`-`, `*`, `+`) and ordered (`1.`) with nesting support
* **Bold & Italic**: `**bold**`, `*italic*`, `***both***`
* **Blockquotes**: `> quoted text` → Word Quote style
* **Fenced Code Blocks**: `…` → monospaced, shaded Code style
* **Inline Code**: `` `code` `` → Consolas + shading
* **Strikethrough**: `~~strike~~` → strike-through formatting
* **Links**: `[text](https://...)` → live hyperlinks## ⚙️ Versions
1. **Word**: VBA macro to paste Markdown into MSÂ Word documents.
2. **Outlook**: VBA macro to paste Markdown into Outlook email editor.## 🚀 Installation & Usage
1. Open the VBA editor (Alt + F11) in Word or Outlook.
2. Insert a new module and paste the corresponding code from this repository.
3. Enable the references listed above (Tools → References).
4. Place your cursor where you want to paste Markdown.
5. Run the **`PasteMarkdown`** (Word) or **`PasteMarkdownInEmail`** (Outlook) macro.> đź’ˇ **Tip:** For faster access, add a button to the Ribbon or assign a keyboard shortcut to the macro!
Enjoy perfectly formatted Markdown in your documents and emails! 🥳
## ⚠️ Limitations
This macro covers many common Markdown features, but **does not support**:
* Images (``)
* Tables (`| col1 | col2 |` rows)
* Footnotes and references (`[^1]`, `[1]: url`)
* Nested blockquotes deeper than one level
* Task lists (`- [ ]`, `- [x]`)
* Definition lists, math formulas, and HTML blocks❗️ It’s unlikely these will be added in the future—feel free to customize or extend if you need them!
## 🤝 Contributing
Pull requests, issues, and suggestions are welcome! Feel free to fork, extend, or improve.
## 📜 License
This project is released under the **MIT License**. See [LICENSE](LICENSE) for details.