aboutsummaryrefslogtreecommitdiff
path: root/test/docx/cross_reference.native
diff options
context:
space:
mode:
authorEzwal <[email protected]>2025-11-30 13:49:58 +0100
committerGitHub <[email protected]>2025-11-30 13:49:58 +0100
commitfc07b06851eac5c70557de101d8044494e9a2bc4 (patch)
tree8146fbecf7dbcefc0a707c0102e53cbdafbecafd /test/docx/cross_reference.native
parent094061d946f12961b9af0b400befbb798f980be7 (diff)
Docx reader: Handle REF link instruction (#11296)
This PR aims to handle a common run field instruction (fieldInstr) from docx format : REF, specifically those with the "link" switch \h. In word software, you can create REF field instruction with the Cross-reference button. You can create cross-reference to many things such as Equation, Table, Title...
Diffstat (limited to 'test/docx/cross_reference.native')
-rw-r--r--test/docx/cross_reference.native7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/docx/cross_reference.native b/test/docx/cross_reference.native
new file mode 100644
index 000000000..eb58cde2a
--- /dev/null
+++ b/test/docx/cross_reference.native
@@ -0,0 +1,7 @@
+[ Header 1 ( "title" , [] , [] ) [ Str "TITLE" ]
+, Para
+ [ Str "Cross-reference:"
+ , Space
+ , Link ( "" , [] , [] ) [ Str "TITLE" ] ( "#title" , "" )
+ ]
+]