slidge-style-parser 0.2.0

roughly parses xep-0393 pseudo-markdown into text formatting for slidge brides
Documentation
  • Coverage
  • 0%
    0 out of 1 items documented0 out of 0 items with examples
  • Size
  • Source code size: 85.14 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 355.09 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 45s Average build duration of successful builds.
  • all releases: 45s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • BluebonnetField

Slidge-style-parser

PyPI version

License: AGPL-3.0-or-later

A parsing library for Slidge. Supports parsing these attributes:

  • "_underline_"

  • "*bold*"

  • "~strikethrough~"

  • "`code span`"

  • "```language

    code block

    ```"

  • ">quote"

  • "||spoiler||"

  • "\_escape style_"

Most of them correspond to XEP-0393: Message Styling.

Methods:


format_for_telegram(body: String, mentions: Optional<(_, start, end_index_exclusive)>)
    -> (body: String, Vec<(format: String, offset: usize, length: usize, language: String)>)

format_for_matrix(body: String, mentions: Optional<(mxid, start, end_index_exclusive)>) -> body: String

To build: uv build or any other PEP517-compliant tool