mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-03-31 17:15:33 +00:00
add comments
This commit is contained in:
parent
2e0a1ae3ef
commit
155247a2ea
7 changed files with 30 additions and 3 deletions
|
|
@ -11,16 +11,19 @@ pub struct Code {
|
|||
}
|
||||
|
||||
impl Code {
|
||||
// Inline
|
||||
// Constructors
|
||||
|
||||
/// Parse inline `Self` from string
|
||||
pub fn inline_from(line: &str) -> Option<Inline> {
|
||||
Inline::from(line)
|
||||
}
|
||||
|
||||
// Multiline
|
||||
/// Begin multi-line parse `Self` from string
|
||||
pub fn multiline_begin_from(line: &str) -> Option<Multiline> {
|
||||
Multiline::begin_from(line)
|
||||
}
|
||||
|
||||
/// Continue multi-line parse `Self` from string
|
||||
pub fn multiline_continue_from(this: &mut Multiline, line: &str) -> Result<(), Error> {
|
||||
match Multiline::continue_from(this, line) {
|
||||
Ok(()) => Ok(()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue