Skip to content

kazu728/markitdown-cosense

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markitdown-cosense

A MarkItDown plugin that converts Cosense notation into Markdown.

Features

  • Headings: [* Heading]# Heading
  • Text styles: [/ italic], [** bold], [*/ strong italic], [- strikethrough]
  • Lists: indented bullets using spaces, tabs, or full-width spaces
  • Code blocks: code:language and fenced sections
  • Tables: table:Title directives with indented rows
  • Links & media: [Label https://example], [img https://.../image.png]
  • Math: code:tex blocks and lightweight inline detection
  • Tags: [tag]<!-- tag: tag -->

Installation

pip install markitdown markitdown-cosense

CLI

markitdown --use-plugins note.txt > note.md

Python

from 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)

License

MIT © kazu728

About

Markitdown plugin of Cosense

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages