Commit 892b40c
Bob
- _is_inline_code_element() walks iterancestors() to catch <span><code>,
<a><code> etc. inside paragraph-like parents (p, li, td, th, dd, dt)
- is_code_block_element() returns False for inline code
- recover_wild_text and _extract filter inline code sub-elems
- baseline filters inline code via _is_inline_code() ancestor walk
- fixes ruff format/CI, addresses review from Sanjays2402 and adbar
All 15 custom inline-code tests pass, 176 unit_tests pass, ruff check passes
1 parent 2ba8f62 commit 892b40c
2 files changed
Lines changed: 39 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
| |||
208 | 220 | | |
209 | 221 | | |
210 | 222 | | |
211 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
212 | 229 | | |
213 | 230 | | |
214 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
232 | 245 | | |
233 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
234 | 250 | | |
235 | 251 | | |
236 | 252 | | |
| |||
681 | 697 | | |
682 | 698 | | |
683 | 699 | | |
| 700 | + | |
| 701 | + | |
684 | 702 | | |
685 | 703 | | |
686 | 704 | | |
| |||
777 | 795 | | |
778 | 796 | | |
779 | 797 | | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
780 | 801 | | |
781 | 802 | | |
782 | 803 | | |
| |||
0 commit comments