Commit 0a388a7
authored
Ignore inline notes during Markdown reference parsing (ruby#1713)
Inline notes inside reference labels can be parsed during the
reference-gathering pass, before footnote ordering is initialized.
`RDoc::Markdown.parse("[foo ^[note]]: /url\n")`
This will crash a Markdown parser with a `NoMethodError`.
This change treats inline-note creation as a no-op until note ordering
exists.1 parent b7b12c2 commit 0a388a7
3 files changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1236 | 1236 | | |
1237 | 1237 | | |
1238 | 1238 | | |
1239 | | - | |
1240 | | - | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
1241 | 1242 | | |
1242 | | - | |
| 1243 | + | |
| 1244 | + | |
1243 | 1245 | | |
1244 | 1246 | | |
1245 | 1247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15478 | 15478 | | |
15479 | 15479 | | |
15480 | 15480 | | |
15481 | | - | |
| 15481 | + | |
15482 | 15482 | | |
15483 | 15483 | | |
15484 | 15484 | | |
| |||
15569 | 15569 | | |
15570 | 15570 | | |
15571 | 15571 | | |
15572 | | - | |
15573 | | - | |
| 15572 | + | |
| 15573 | + | |
| 15574 | + | |
15574 | 15575 | | |
15575 | | - | |
| 15576 | + | |
| 15577 | + | |
15576 | 15578 | | |
15577 | 15579 | | |
15578 | 15580 | | |
| |||
16843 | 16845 | | |
16844 | 16846 | | |
16845 | 16847 | | |
16846 | | - | |
| 16848 | + | |
16847 | 16849 | | |
16848 | 16850 | | |
16849 | 16851 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1025 | 1025 | | |
1026 | 1026 | | |
1027 | 1027 | | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
1028 | 1034 | | |
1029 | 1035 | | |
1030 | 1036 | | |
| |||
0 commit comments