Commit 4b9daa0
authored
Allow using backticks to quote text in RDoc markup too (#1551)
Users can now use both ``` ` ``` and `+` to make simple code blocks in
RDoc markup.
Using backticks to quote code has become a natural habit for many users,
so it's common to see it being incorrectly used to contribute to Ruby
documentation.
But instead of "correcting" users' behaviour, we should just support it.
It'll also allow us to partially migrate some RDoc markup to Markdown.1 parent 9c69c42 commit 4b9daa0
File tree
3 files changed
+44
-3
lines changed- doc/markup_reference
- lib/rdoc/markup
- test/rdoc/markup
3 files changed
+44
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
759 | | - | |
| 759 | + | |
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
| 765 | + | |
| 766 | + | |
765 | 767 | | |
766 | 768 | | |
767 | 769 | | |
768 | 770 | | |
769 | 771 | | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
770 | 785 | | |
771 | 786 | | |
772 | 787 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
247 | 272 | | |
248 | 273 | | |
249 | 274 | | |
| |||
367 | 392 | | |
368 | 393 | | |
369 | 394 | | |
370 | | - | |
| 395 | + | |
371 | 396 | | |
372 | 397 | | |
373 | 398 | | |
| |||
0 commit comments