Test shows DOCX heading detection depends on outline level, not bold styling
A developer tested how a DOCX converter classifies paragraphs using synthetic, text-only fixtures with identical wording but different formatting properties. A paragraph with a direct outline level of 0 converted to a level-one Markdown heading, while a bold, larger-font paragraph without outline information stayed as emphasized body text. A defined Heading1 style containing an outline level also produced a heading, though the result does not prove style names alone trigger recognition. The author stresses that the results come from local Node conversions using a specific WASM package, not from visual rendering, arbitrary documents, or production browser tests. The recommended practice is to compare complete outputs for known inputs so that a heading is distinguished from emphasized text.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in