mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-03-31 17:15:33 +00:00
apply annotation comments
This commit is contained in:
parent
82576b27dc
commit
b298e02bc4
1 changed files with 4 additions and 4 deletions
|
|
@ -7,8 +7,8 @@ pub struct Multiline {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Multiline {
|
impl Multiline {
|
||||||
// Search in line for tag open,
|
/// Search in line for tag open,
|
||||||
// return Self constructed on success or None
|
/// return Self constructed on success or None
|
||||||
pub fn begin_from(line: &str) -> Option<Self> {
|
pub fn begin_from(line: &str) -> Option<Self> {
|
||||||
if line.starts_with("```") {
|
if line.starts_with("```") {
|
||||||
let alt = line.trim_start_matches("```");
|
let alt = line.trim_start_matches("```");
|
||||||
|
|
@ -26,8 +26,8 @@ impl Multiline {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
// Continue preformatted buffer from line,
|
/// Continue preformatted buffer from line,
|
||||||
// set `completed` as True on close tag found
|
/// set `completed` as True on close tag found
|
||||||
pub fn continue_from(&mut self, line: &str) {
|
pub fn continue_from(&mut self, line: &str) {
|
||||||
// Make sure buffer not completed yet
|
// Make sure buffer not completed yet
|
||||||
if self.completed {
|
if self.completed {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue