Hey Developers! ๐
TL;DR: Single-character syntax = significant fewer tokens = cheaper AI costs ๐ฏ
What if I told you there's a way to make your Markdown few percentage more efficient for LLMs while keeping it just as readable for humans?
Sounds too good to be true? Well, Quick Markdown (QMD) is here to change the game! ๐ฎ
๐ค What is Quick Markdown?
Quick Markdown (QMD) is a lightweight markup language that maintains Markdown's readability while significantly reducing storage requirements and token consumption.
Enter: QMD ๐ฏ
๐ง Built for LLMs(in addition)
๐พ Reduces token & storage usage
๐ Compact, clean, and context-aware
๐ Still plays nicely with traditional Markdown!
Itโs like Markdown, but on a diet ๐ช๐
๐ญ Show us example, man
Yes, yes, here are examples by comparison
Traditional: ## Heading Two (3 tokens)
QMD: >Heading Two (1 token) ๐
Traditional: **bold text** (4 tokens)
QMD: *bold text* (2 tokens) โก
Traditional: - [x] Done task (6 tokens)
QMD: + Done task (2 tokens) ๐
๐ต Real impact
Comparison: Traditional vs QMD
Traditional Markdown (231 bytes):
## Shopping List
**Important** items to buy:
- Milk
- Bread
- Whole wheat
- Sourdough
- ~~Eggs~~ Already have
### Tasks
- [x] Buy groceries
- [ ] Call store
- [~] Check prices
### Notes
Check https://store.com for *deals*.
QMD Version (217 bytes, approximatelyโฏ6.1โฏ% reduction):
>Shopping List
*Important* items to buy:
โข Milk
โข Bread
โข Whole wheat
โข Sourdough
โข ~Eggs~ Already have
-Tasks
+ Buy groceries
. Call store
* Check prices
-Notes
Check https://store.com for /deals/.
For larger files, the compression ratio between QMD and MD should be significantly better
๐ Ready to Start?
Check out the GitHub repo and start using QMD today! Your LLM bills will thank you! ๐ฐ
GitHub : https://github.com/ajithraghavan/qmd
The future of documentation is Quick, Quality, and ready for a Quantum-leap! โก
โญ Star it on GitHub, clone it, try it out and tell us what you think!
Built something cool with QMD
๐ฌ Drop it in the comments!
Top comments (0)