Commit 5c56c601 authored by Wendell Piez's avatar Wendell Piez
Browse files

Tightened selection of paragraphs for header promotion consideration (now too loose)

parent b17de1c5
......@@ -34,7 +34,9 @@
<xsl:variable name="level-map" as="element()*">
<xsl:for-each-group select="//body//p[exists(xsw:outline-level(.))]" group-by="xsw:outline-level(.)">
<xsl:for-each-group select="//body/p[exists(xsw:outline-level(.))]
| //body/div[@class='docx-body']/p[exists(xsw:outline-level(.))]"
<xsl:sort select="xsw:outline-level(.)"/>
<xsl:if test="position() le 6">
<xsl:element name="h{position()}">
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment