crst
Version, currently 1.5.028 versions
- 1.5.1latestAug 31, 2026
- 1.5.0not indexedAug 31, 2026
- 1.4.6Aug 14, 2026
- 1.4.5not indexedAug 14, 2026
- 1.4.4not indexedAug 14, 2026
- 1.4.3not indexedAug 14, 2026
- 1.4.2not indexedAug 14, 2026
- 1.4.1not indexedJul 30, 2026
- 1.4.0not indexedJul 29, 2026
- 1.3.5not indexedJun 23, 2026
- 1.3.4not indexedJun 22, 2026
- 1.3.3not indexedMay 5, 2026
- 1.3.2not indexedMay 4, 2026
- 1.3.1not indexedMay 4, 2026
- 1.3.0not indexedMay 4, 2026
- 1.2.1not indexedMay 2, 2026
- 1.2.0not indexedMay 2, 2026
- 1.1.1not indexedMar 21, 2026
- 1.1.0not indexedMar 21, 2026
- 1.0.10not indexedMar 20, 2026
- 1.0.9not indexedFeb 13, 2026
- 1.0.8not indexedFeb 13, 2026
- 1.0.7not indexedFeb 4, 2026
- 1.0.6not indexedFeb 4, 2026
- 1.0.5not indexedFeb 4, 2026
- 1.0.4not indexedJan 30, 2026
- 1.0.3not indexedJan 30, 2026
- 1.0.1not indexedJan 30, 2026
gitlab.com/renich/crst
RST parser for Crystal
Nothing has been indexed for 1.5.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
crst:
gitlab: renich/crst
version: ~> 1.5.0Then run:
shards installshard.yml
No shard.yml has been indexed for 1.5.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
π crst
Native Crystal reStructuredText (RST) parser and multi-format document compiler.
β‘ Highlights
- Pure Native Crystal: Zero external C bindings or Python/Docutils runtime dependencies.
- Rich Syntax Support: Sections, bullet/enumerated/definition/field/option lists, tables (simple and grid), literal blocks, doctests, and directives.
- Exact AST Source Spans: Full 1:1 line and column coordinate tracking (
line,column,end_line,end_column) on all AST nodes. - Multi-Target Rendering: High-speed compilation to HTML5, DocBook XML, LaTeX, and Plain Text.
- Extensible Architecture: Typed custom interpreted roles and custom block directive Procs.
π Quickstart
1. Installation
Add crst to your shard.yml:
dependencies:
crst:
gitlab: renich/crst
version: ~> 1.5.1
Run shards install.
2. Basic Usage
require "crst"
rst_source = <<-RST
Sample Heading
==============
This is a paragraph with **strong** and *emphasis* formatting.
- First item
- Second item
RST
# 1. Parse directly to typed Abstract Syntax Tree (AST)
doc = Crst.parse(rst_source)
# 2. Render directly to HTML5, XML, LaTeX, or Plain Text
html = Crst.to_html(rst_source)
xml = Crst.to_xml(rst_source)
tex = Crst.to_latex(rst_source)
text = Crst.to_text(rst_source)
3. Custom Directives & Roles
require "crst"
config = Crst::Config.new
config.roles["badge"] = "badge-primary"
config.custom_directives["alert"] = ->(name : String, args : Array(String), opts : Hash(String, String), children : Array(Crst::Node), cfg : Crst::Config) {
[Crst::Paragraph.new("ALERT: #{args.join(' ')}")] of Crst::Node
}
html = Crst.to_html(".. alert:: Notice!\n\nCheck :badge:`new` feature.", config)
π Documentation
Comprehensive guides and technical blueprints are located in docs/:
π οΈ Development
make spec # Run test suite
make lint # Run static analysis (Ameba, yamllint, rstcheck)
make docs # Generate API documentation
π€ Contributing & Code of Honor
Contributions are welcome! Please read CONTRIBUTING.rst for submission guidelines.
This project strictly adheres to the Universal Code of Honor.
π Support the Project
If you find crst valuable for your applications and toolchains, please consider supporting its development:
Sponsored and maintained by RΓ©nich Bon ΔiriΔ on Liberapay.
π License
This library is licensed under the AGPL-3.0 License.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.5.0- Tagged
- Aug 31, 2026
- Commit
9804fb0f3517- Indexed
- not yet
Dependents
Repository
gitlab.com/renich/crst
Metadata
- Created
- Aug 17, 2026
- Updated
- Sep 29, 2026
- Synced
- Sep 29, 2026
- Versions
- 28