Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-references are not converted in anchors #24

Open
DunaMariusCosmin opened this issue Mar 9, 2021 · 0 comments
Open

Cross-references are not converted in anchors #24

DunaMariusCosmin opened this issue Mar 9, 2021 · 0 comments

Comments

@DunaMariusCosmin
Copy link

Hi,
Some cross-references are not converted in anchors. I attached a sample:
sample.docx

The result of the conversion should be:

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title/>
    </head>
    <body>
        <h1>Title</h1>
        <p>Reference to: <a href="#_Ref66182243">Heading</a></p>
        <h1><a id="_Ref66182243"/>Heading</h1>
        <p>Content1</p>
    </body>
</html>

but the "a" element with the "href" attribute is not added.

This kind of references have the "REF" field definition with the "\h" argument: https://c-rex.net/projects/samples/ooxml/e1/Part4/OOXML_P4_DOCX_REFREF_topic_ID0ESRL1.html

This can be a possible fix: DunaMariusCosmin@0e23540

Best regards,
Cosmin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant