mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-04-02 10:05:37 +00:00
add comments
This commit is contained in:
parent
2e0a1ae3ef
commit
155247a2ea
7 changed files with 30 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use glib::{DateTime, Regex, RegexCompileFlags, RegexMatchFlags, TimeZone, Uri, UriFlags};
|
||||
|
||||
/// [Link](https://geminiprotocol.net/docs/gemtext-specification.gmi#link-lines) entity holder
|
||||
pub struct Link {
|
||||
pub alt: Option<String>, // [optional] alternative link description
|
||||
pub is_external: Option<bool>, // [optional] external link indication, on base option provided
|
||||
|
|
@ -8,6 +9,9 @@ pub struct Link {
|
|||
}
|
||||
|
||||
impl Link {
|
||||
// Constructors
|
||||
|
||||
/// Parse `Self` from string
|
||||
pub fn from(line: &str, base: Option<&Uri>, timezone: Option<&TimeZone>) -> Option<Self> {
|
||||
// Define initial values
|
||||
let mut alt = None;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue