add comments

This commit is contained in:
yggverse 2024-12-03 18:43:34 +02:00
parent 2e0a1ae3ef
commit 155247a2ea
7 changed files with 30 additions and 3 deletions

View file

@ -1,10 +1,14 @@
use glib::{Regex, RegexCompileFlags, RegexMatchFlags};
/// Inline [preformatted](https://geminiprotocol.net/docs/gemtext-specification.gmi#in-pre-formatted-mode) entity holder
pub struct Inline {
pub value: String,
}
impl Inline {
// Constructors
/// Parse `Self` from string
pub fn from(line: &str) -> Option<Self> {
// Parse line
let regex = Regex::split_simple(