mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-04-01 09:35:34 +00:00
add comments
This commit is contained in:
parent
2e0a1ae3ef
commit
155247a2ea
7 changed files with 30 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue