Closed PeterEbel closed 4 years ago
Bookmarks in the document are converted to anchors in the HTML output. If you get rid of the bookmarks in the original document, then the corresponding anchors shouldn't appear in the output.
Thanks a lot for this super helpful tip Michael! The bookmarks were indeed causing the appearance of the anchors!
No worries.
Hi,
this one is driving me nuts: I have a plain vanilla Word document that is based on a plain vanilla normal.dotm template. Nothing special, there is no table of content no index, nothing. Just some plain text formatted in the standard paragraph stylesheet, a heading 3 stylesheet plus 2 additional stylesheets I've created. More or less plain text. The heading 3 stylesheet and the two custom stylesheets are mapped in a custom stylemap to h1 to h3 elements:
p[style-name='Heading 3'] => h1:fresh p[style-name='my_stylesheet_01'] => h2:fresh p[style-name='my_stylesheet_02'] => h3:fresh
After the conversion the HTML heading h1-h3 include
<a>
elements with an id attribute referencing some table of content item. It looks like this:<h1><a id="_Toc48228035"></a><a id="_Toc48288791"></a><a id="_Toc48303673"></a><a id="_Toc48306159"></a><a id="_Toc48308644"></a><a id="_Toc48311128"></a><a id="_Toc48313611"></a>Arteriosklerose</h1>
What is going on here? Why are the
<a>
elements embedded and how can I get rid of them?Any help highly appreciated. Thanks in advance.
Peter