brief-core
The reference compiler for the Brief markup language: lexer, parser, AST, HTML and LLM emitters, formatter, and a Markdown-to-Brief converter — all as a single library crate.
Brief is a writer-first markup format designed to be both human-pleasant and
LLM-friendly. The format spec doubles as a quickstart and lives in
LearnXinYminutes.brf.
Use it from Rust
use Config;
use html;
use lex;
use parse;
use resolve;
use Registry;
use SourceMap;
use ;
let src = new;
let tokens = lex.expect;
let = parse;
let registry = default;
resolve;
validate;
let rendered = render;
println!;
Convert Markdown to Brief:
use convert;
let result = convert;
println!;
What's in the box
Public modules: ast, config, convert, diag, emit, fmt, inline,
lexer, minify, parser, project, resolve, shortcode, span,
token, validate, watch.
CLI tooling
The brief CLI, the brief-web static-site generator, and the brief-lsp
language server live in sibling crates
in the upstream repository. They are not yet published to crates.io.
License
MIT. See the LICENSE file in the upstream repository.