diff options
Diffstat (limited to 'src/construct/label_start_link.rs')
-rw-r--r-- | src/construct/label_start_link.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/construct/label_start_link.rs b/src/construct/label_start_link.rs index f4c2ce8..e13cd77 100644 --- a/src/construct/label_start_link.rs +++ b/src/construct/label_start_link.rs @@ -37,13 +37,13 @@ use crate::tokenizer::{Code, LabelStart, State, Tokenizer}; /// > | a [b] c /// ^ /// ``` -pub fn start(tokenizer: &mut Tokenizer, code: Code) -> State { - match code { +pub fn start(tokenizer: &mut Tokenizer) -> State { + match tokenizer.current { Code::Char('[') if tokenizer.parse_state.constructs.label_start_link => { let start = tokenizer.events.len(); tokenizer.enter(Token::LabelLink); tokenizer.enter(Token::LabelMarker); - tokenizer.consume(code); + tokenizer.consume(); tokenizer.exit(Token::LabelMarker); tokenizer.exit(Token::LabelLink); tokenizer.label_start_stack.push(LabelStart { |