Skip to main content

A markitdown plugin for converting Cosense notation to Markdown

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markitdown_cosense-0.2.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

markitdown_cosense-0.2.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file markitdown_cosense-0.2.0.tar.gz.

File metadata

  • Download URL: markitdown_cosense-0.2.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for markitdown_cosense-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c6371c583ea78c33be454b0ad1a4bb7d36b64460012abaf2534c485e20f1c88b
MD5 28f08722adfcd3f2ef24a47967a7b7a8
BLAKE2b-256 cffd5e33253d4b6928b6a2097db342d5b6a6b90895e125e1dda2583325917e16

See more details on using hashes here.

Provenance

The following attestation bundles were made for markitdown_cosense-0.2.0.tar.gz:

Publisher: publish.yml on kazu728/markitdown-cosense

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file markitdown_cosense-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for markitdown_cosense-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9245cbf599edcfad69f4cac9402c4e6aac4835c9b098593406522e0da8cea6c9
MD5 52d325c1600f4ae84e4158ca9fe8b19e
BLAKE2b-256 ea68df3a1d19f3c2fa1e06485e962c458c622d721084eb2e366877c589e02b9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for markitdown_cosense-0.2.0-py3-none-any.whl:

Publisher: publish.yml on kazu728/markitdown-cosense

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page