From 3a1a41145706c5608bc2f05d173907d9271b1e7a Mon Sep 17 00:00:00 2001 From: Giorgio Garofalo Date: Thu, 8 Aug 2024 15:34:30 +0200 Subject: [PATCH] Fix documentation typo --- .../kotlin/eu/iamgio/quarkdown/parser/BlockTokenParser.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/kotlin/eu/iamgio/quarkdown/parser/BlockTokenParser.kt b/core/src/main/kotlin/eu/iamgio/quarkdown/parser/BlockTokenParser.kt index 34b0f611..090104d0 100644 --- a/core/src/main/kotlin/eu/iamgio/quarkdown/parser/BlockTokenParser.kt +++ b/core/src/main/kotlin/eu/iamgio/quarkdown/parser/BlockTokenParser.kt @@ -122,7 +122,7 @@ class BlockTokenParser(private val context: MutableContext) : BlockTokenVisitor< /** * Splits a heading text and its custom ID from a raw text. - * `# Heading {#custom-id}` -> `Heading`, `custom-id` + * `Heading {#custom-id}` -> `Heading`, `custom-id` * @param text heading text * @return a pair of the heading text and its custom ID */ @@ -142,7 +142,7 @@ class BlockTokenParser(private val context: MutableContext) : BlockTokenVisitor< val depth = groups.next().length // Amount of # characters. val rawText = groups.next().trim().takeUntilLastOccurrence(" #") // Remove trailing # characters. - // # Heading {#custom-id} -> Heading, custom-id + // Heading {#custom-id} -> Heading, custom-id val (text, customId) = splitHeadingTextAndId(rawText) return Heading( @@ -156,7 +156,7 @@ class BlockTokenParser(private val context: MutableContext) : BlockTokenVisitor< val groups = token.data.groups.iterator(consumeAmount = 2) val rawText = groups.next().trim() - // # Heading {#custom-id} -> Heading, custom-id + // Heading {#custom-id} -> Heading, custom-id val (text, customId) = splitHeadingTextAndId(rawText) return Heading(