brief-core 0.3.0

Compiler library for the Brief markup language: lexer, parser, AST, HTML/LLM emitters, formatter, and Markdown-to-Brief converter.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod html;
pub mod llm;

use crate::ast::Document;
use crate::shortcode::Registry;

pub fn to_html(doc: &Document, reg: &Registry) -> String {
    html::render(doc, reg)
}

pub fn to_llm(doc: &Document, reg: &Registry, opts: &llm::Opts) -> (String, Vec<String>) {
    llm::render(doc, reg, opts)
}