Commit d51bfc0
authored
Apply markup in table cell (#1483)
In the documentation for methods like `test`, backtick are used within
table cells.
While each parser handles backquotes within table cells, the generator
does not.
As a result, the tags are displayed literally without being processed.
To resolve this, I propose that tag expressions should be properly
handled within table cells as well.
### Before
ri --format=bs test
```
Character |Test
------------|---------------------------------------------------------------
<tt>'<'</tt>|Whether the `mtime` at `path0` is less than that at `path1`.
<tt>'='</tt>|Whether the `mtime` at `path0` is equal to that at `path1`.
<tt>'>'</tt>|Whether the `mtime` at `path0` is greater than that at `path1`.
```
ri --format=markdown test
```
Character |Test
------------|---------------------------------------------------------------
<tt>'<'</tt>|Whether the `mtime` at `path0` is less than that at `path1`.
<tt>'='</tt>|Whether the `mtime` at `path0` is equal to that at `path1`.
<tt>'>'</tt>|Whether the `mtime` at `path0` is greater than that at `path1`.
```
ri --format=ansi
<img width="550" height="92" alt="image"
src="https://github.com/user-attachments/assets/1f7f4ac4-7c15-4352-b272-9e8789a3320a"
/>
### After
ri --format=bs test
```
Character|Test
---------|---------------------------------------------------------------
'<' |Whether the `mtime` at `path0` is less than that at `path1`.
'=' |Whether the `mtime` at `path0` is equal to that at `path1`.
'>' |Whether the `mtime` at `path0` is greater than that at `path1`.
```
ri --format=markdown test
```
Character|Test
---------|---------------------------------------------------------------
`'<'` |Whether the `mtime` at `path0` is less than that at `path1`.
`'='` |Whether the `mtime` at `path0` is equal to that at `path1`.
`'>'` |Whether the `mtime` at `path0` is greater than that at `path1`.
```
ri --format=ansi
<img width="522" height="90" alt="image"
src="https://github.com/user-attachments/assets/bd1dc32d-fe67-4f95-b819-30454f78af65"
/>1 parent f85cf5c commit d51bfc0
File tree
8 files changed
+31
-15
lines changed- lib/rdoc/markup
- test/rdoc
- markup
- support
8 files changed
+31
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
253 | 255 | | |
254 | | - | |
| 256 | + | |
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
| |||
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
267 | | - | |
| 269 | + | |
| 270 | + | |
268 | 271 | | |
269 | 272 | | |
270 | 273 | | |
271 | 274 | | |
272 | | - | |
| 275 | + | |
| 276 | + | |
273 | 277 | | |
274 | 278 | | |
275 | 279 | | |
276 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
277 | 285 | | |
278 | 286 | | |
279 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments