Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/rdoc/markdown.kpeg
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@

@note_order.each_with_index do |ref, index|
label = index + 1
note = @footnotes[ref]
note = @footnotes[ref] or raise ParseError, "footnote [^#{ref}] not found"

link = "{^#{label}}[rdoc-label:footmark-#{label}:foottext-#{label}] "
note.parts.unshift link
Expand Down Expand Up @@ -1179,7 +1179,7 @@ InlineNote = &{ notes? }
Notes = ( Note | SkipBlock )*

RawNoteBlock = @StartList:a
( !@BlankLine OptionallyIndentedLine:l { a << l } )+
( !@BlankLine !RawNoteReference OptionallyIndentedLine:l { a << l } )+
( < @BlankLine* > { a << text } )
{ a }

Expand Down
1 change: 0 additions & 1 deletion test/rdoc/test_rdoc_markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,6 @@ def test_parse_note_multiple
and an extra note.[^2]

[^1]: With a footnote

[^2]: Which should be numbered correctly
MD

Expand Down