Commit b0d3a7c
authored
fix: protect backtick spans before stripping markdown italic in docstring generator (#175)
The _([^_]+)_ regex intended to strip _italic_ markdown was also matching
underscores inside backtick-quoted identifiers (e.g. SERIAL_RX_BUFFER_SIZE
→ SERIALRXBUFFER_SIZE). Backtick spans are now saved and restored around
the emphasis-stripping pass.1 parent 9547c20 commit b0d3a7c
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
131 | 138 | | |
132 | 139 | | |
133 | 140 | | |
134 | 141 | | |
135 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
136 | 146 | | |
137 | 147 | | |
138 | 148 | | |
| |||
0 commit comments