diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-04-22 14:12:37 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-04-22 14:12:37 +0100 |
| commit | 0f1c6c17628c4fec2d665071baf14e31323d22d9 (patch) | |
| tree | c9e9c55af1f35d4f23ff7da7618e7e69ef220bd9 | |
| parent | 5c96af60296441d781a78c1a0b2ee264f7b126f5 (diff) | |
Document matching by style name
| -rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -273,6 +273,17 @@ Match any run: r ``` +To match a paragraph or run with a specific style, +you can reference the style by name. +This is the style name that is displayed in Microsoft Word or LibreOffice. +For instance, to match a paragraph with the style name `Heading 1`: + +``` +p[name='Heading1'] +``` + +Styles can also be referenced by style ID. +This is the ID used internally in the .docx file. To match a paragraph or run with a specific style ID, append a dot followed by the style ID. For instance, to match a paragraph with the style `Heading1`: |
