Skip to content

Commit

Permalink
Fix type of BlockParser.parse
Browse files Browse the repository at this point in the history
FIX: `BlockParser.parse`'s exported type was missing an argument.

Closes #2
  • Loading branch information
marijnh committed Feb 12, 2021
1 parent cf6b08b commit 18fccab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -932,9 +932,10 @@ export interface BlockParser {
/// [specify](#BlockParser.before) precedence.
name: string,
/// The eager parse function, which can look at the block's first
/// line and return `false` to do nothing, `true` if it has parsed a
/// block, or `null` if it has started a composite block.
parse?(cx: BlockContext): BlockResult
/// line and return `false` to do nothing, `true` if it has parsed
/// (and [moved past](#BlockContext.nextLine) a block, or `null` if
/// it has started a composite block.
parse?(cx: BlockContext, line: Line): BlockResult
/// A leaf parse function. If no [regular](#BlockParser.parse) parse
/// functions match for a given line, its content will be
/// accumulated for a paragraph-style block. This method can return
Expand Down

0 comments on commit 18fccab

Please sign in to comment.