A MarkItDown plugin that converts Cosense notation into Markdown.
- Headings:
[* Heading]→# Heading - Text styles:
[/ italic],[** bold],[*/ strong italic],[- strikethrough] - Lists: indented bullets using spaces, tabs, or full-width spaces
- Code blocks:
code:languageand fencedsections - Tables:
table:Titledirectives with indented rows - Links & media:
[Label https://example],[img https://.../image.png] - Math:
code:texblocks and lightweight inline detection - Tags:
[tag]→<!-- tag: tag -->
pip install markitdown markitdown-cosensemarkitdown --use-plugins note.txt > note.mdfrom markitdown import MarkItDown, StreamInfo
from markitdown_cosense import register_converters
md = MarkItDown()
register_converters(md)
with open("note.txt", "rb") as fh:
result = md.convert_stream(fh, stream_info=StreamInfo(extension=".txt"))
print(result.text_content)MIT © kazu728