From 3841f73dbaf622944f050d6140dd7d0f7d3dd391 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 4 Nov 2017 12:00:34 +0000 Subject: Document style mappings for tables --- NEWS | 2 ++ README.md | 10 ++++++++-- 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`: -- cgit v1.2.3