#html #markup-language #text-html #element #text

bin+lib doccy

Doccy is a simple brace based markup language

7 releases

Uses old Rust 2015

0.3.2 Dec 19, 2019
0.3.1 Dec 19, 2019
0.3.0 Sep 22, 2018
0.2.3 Dec 19, 2019
0.1.1 Sep 21, 2018

#1698 in Text processing

Download history 1/week @ 2024-12-04 1/week @ 2024-12-11 2/week @ 2025-02-12

13,676 downloads per month

MIT license

33KB
894 lines

Doccy

Doccy is a simple brace based markup language, an alternative to writing HTML for people who enjoy the power and flexibility but do not enjoy writing it.

Features:

See the latest documentation for more information about Doccy syntax and provided APIs.

  • Implied paragraphs and line breaks
  • Simple curley brace based element syntax
  • Support for all body HTML elements
  • Command line interface

Examples

Rust

extern crate doccy;

use doccy::doccy_to_html;

fn main() {
    match doccy_to_html("your document {em: here}") {
        // <p>your document <em>here</em></p>
        Ok(html) => println!("{}", html),
        Err(error) => {}
    };
}

Command line

# <p>your document <em>here</em></p>
echo "your document {em: here}" | doccy to-html

Dependencies

~2MB
~25K SLoC