]> git.r.bdr.sh - rbdr/gema_texto/blame - src/lib.rs
Fix regression where .gmi wasn't being replaced to .html
[rbdr/gema_texto] / src / lib.rs
CommitLineData
8beb2bfa
RBR
1//! `gema_texto` parses gemtext and renders html.
2//!
3//! This library powers [blog](https://r.bdr.sh/blog.html) and
4//! [page](https://r.bdr.sh/page.html), so it makes some decisions on
5//! for those projects. Here's how each line is handled:
6//!
7//! - Headings and the content under them is wrapped in a `<section>` tag.
8//! - All text lines are `<p>`, even empty ones.
9//! - URLs are wrapped in a `<p>`
10//! - Alt Text is supported for preformatted-toggles, and is written as
11//! the aria-label of the `<pre>` tag.
12//! - Consecutive list items are wrapped in a `<ul>` and rendered as `<li>` tags.
13//! - Quotes are wrapped in a single `<blockquote>`
14//!
15pub mod gemini_parser;
16pub mod html_renderer;