summaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2014-06-25 08:10:19 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2014-06-25 08:10:19 -0400
commitc343f1a90bc35d745de673de5ff771ddbe60be54 (patch)
tree9975bb9d2190a90e067fd00ac28e02a83b0c0c8f /src/Text
parent5ba47605276cf52aeef06043b47a04ca05bd0339 (diff)
Docx Reader: Add change types
Insertion and deletion. Dates are just strings for now.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Docx/Parse.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Docx/Parse.hs b/src/Text/Pandoc/Readers/Docx/Parse.hs
index 18200bcf9..1cb5fe2e3 100644
--- a/src/Text/Pandoc/Readers/Docx/Parse.hs
+++ b/src/Text/Pandoc/Readers/Docx/Parse.hs
@@ -455,6 +455,8 @@ elemToCell ns element
elemToCell _ _ = Nothing
data ParPart = PlainRun Run
+ | Insertion ChangeId Author ChangeDate [Run]
+ | Deletion ChangeId Author ChangeDate [Run]
| BookMark BookMarkId Anchor
| InternalHyperLink Anchor [Run]
| ExternalHyperLink RelId [Run]
@@ -604,4 +606,6 @@ type Target = String
type Anchor = String
type BookMarkId = String
type RelId = String
-
+type ChangeId = String
+type Author = String
+type ChangeDate = String