// Either: // 1. There should be no bold spans in code mode (inner styles stripped), OR // 2. If bold spans exist, they should not overlap with code_block span if (codeBlockSpan && boldSpan) { // Check for overlap const overlaps = boldSpan.start < codeBlockSpan.end && boldSpan.end > codeBlockSpan.start; // Overlapping styles are the bug - this should fail until fixed
expect(overlaps).toBe(false);
}
});
it("should not have overlapping styles when cell has italic text", () => { const md = `
| Name | Value |
|------|-------|
| *Italic* | Normal |
`.trim();
const ir = markdownToIR(md, { tableMode: "code" });
it("should not have overlapping styles when cell has inline code", () => { const md = `
| Name | Value |
|------|-------|
| \`code\` | Normal |
`.trim();
const ir = markdownToIR(md, { tableMode: "code" });
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.