From 2d35cbfceace81a217cd0fbdae7a8777c7a6465e Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 11 Aug 2022 13:31:20 +0200 Subject: Refactor internal docs, code style of tokenizer --- src/construct/partial_title.rs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/construct/partial_title.rs') diff --git a/src/construct/partial_title.rs b/src/construct/partial_title.rs index 0b81418..209240e 100644 --- a/src/construct/partial_title.rs +++ b/src/construct/partial_title.rs @@ -133,13 +133,26 @@ pub fn at_break(tokenizer: &mut Tokenizer) -> State { } } -/// To do. +/// In a title, after whitespace. +/// +/// ```markdown +/// | "a␊ +/// > | b" +/// ^ +/// ``` pub fn after_eol(tokenizer: &mut Tokenizer) -> State { tokenizer.tokenize_state.connect = true; State::Retry(StateName::TitleAtBreak) } -/// To do. +/// In a title, at a blank line. +/// +/// ```markdown +/// | "a␊ +/// > | ␊ +/// ^ +/// | b" +/// ``` pub fn at_blank_line(tokenizer: &mut Tokenizer) -> State { tokenizer.tokenize_state.marker = 0; tokenizer.tokenize_state.connect = false; -- cgit