diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-04 23:04:42 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-04 23:04:42 +0100 |
| commit | 8beb2bfa1af988442550c9e6999d924dd14b5236 (patch) | |
| tree | e24c5ca4b5d6da02895094f2341231236091132c /src/lib.rs | |
Add the library
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..53acfcf --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,16 @@ +//! `gema_texto` parses gemtext and renders html. +//! +//! This library powers [blog](https://r.bdr.sh/blog.html) and +//! [page](https://r.bdr.sh/page.html), so it makes some decisions on +//! for those projects. Here's how each line is handled: +//! +//! - Headings and the content under them is wrapped in a `<section>` tag. +//! - All text lines are `<p>`, even empty ones. +//! - URLs are wrapped in a `<p>` +//! - Alt Text is supported for preformatted-toggles, and is written as +//! the aria-label of the `<pre>` tag. +//! - Consecutive list items are wrapped in a `<ul>` and rendered as `<li>` tags. +//! - Quotes are wrapped in a single `<blockquote>` +//! +pub mod gemini_parser; +pub mod html_renderer; |