summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-11-04 12:00:34 +0000
committerMichael Williamson <mike@zwobble.org>2017-11-04 12:00:34 +0000
commit3841f73dbaf622944f050d6140dd7d0f7d3dd391 (patch)
treeb6ec784b91a58d54f0143d212d4f08a2595d296e
parent2c8eb41429855af4ffba5b72fca11e08d699c08c (diff)
Document style mappings for tables
-rw-r--r--NEWS2
-rw-r--r--README.md10
2 files changed, 10 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index c3f9040..69ed0c3 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,8 @@
* Add style mapping for small caps.
+* Add style mapping for tables.
+
# 1.3.1
* Read children of w:object elements.
diff --git a/README.md b/README.md
index 96a41f2..ae8bc31 100644
--- a/README.md
+++ b/README.md
@@ -348,7 +348,7 @@ In this case, style mappings similar to `p[style-name='Aside Heading'] => div.as
### Document element matchers
-#### Paragraphs and runs
+#### Paragraphs, runs and tables
Match any paragraph:
@@ -362,7 +362,13 @@ Match any run:
r
```
-To match a paragraph or run with a specific style,
+Match any table:
+
+```
+table
+```
+
+To match a paragraph, run or table 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`: