Commit 9c69c42
Define
Closes #1535
Reverts part of #1389
We cannot change the constant from a Struct to a class because that
breaks Marshal serialization when RDoc is working with a Ruby version
different than the latest one. It can only be changed after RDoc's
serialization does not use Marshal.
Trying to improve serialization is a larger effort, so let's revert to
fix the bug for now and we can take our time to plan that afterwards.
Co-authored-by: Stan Lo <st0012@users.noreply.github.com>Markup::Heading as a struct on rubies older than v4.0.0 (#1549)1 parent 0602d13 commit 9c69c42
1 file changed
+29
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
5 | 32 | | |
6 | 33 | | |
7 | 34 | | |
| |||
13 | 40 | | |
14 | 41 | | |
15 | 42 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 43 | + | |
| 44 | + | |
23 | 45 | | |
24 | 46 | | |
25 | 47 | | |
| |||
43 | 65 | | |
44 | 66 | | |
45 | 67 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
0 commit comments