Skip to content

Commit bc1caab

Browse files
committed
EPUB writer: change default accessibilityFeatures.
Don't include ARIA and MathML in general; they won't apply for epub2 or documents without math.
1 parent 6fe94a3 commit bc1caab

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

MANUAL.txt

-2
Original file line numberDiff line numberDiff line change
@@ -6857,8 +6857,6 @@ The following fields are recognized:
68576857
Defaults to
68586858

68596859
- "alternativeText"
6860-
- "ARIA"
6861-
- "MathML"
68626860
- "readingOrder"
68636861
- "structuralNavigation"
68646862
- "tableOfContents"

src/Text/Pandoc/Writers/EPUB.hs

+2-3
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,8 @@ metadataFromMeta opts meta = EPUBMetadata{
413413
accessibilityFeatures =
414414
case lookupMeta "accessibilityFeatures" meta of
415415
Just (MetaList xs) -> map metaValueToString xs
416-
_ -> ["alternativeText","ARIA","MathML",
417-
"readingOrder", "structuralNavigation",
418-
"tableOfContents"]
416+
_ -> ["alternativeText", "readingOrder",
417+
"structuralNavigation", "tableOfContents"]
419418
accessibilityHazards =
420419
case lookupMeta "accessibilityHazards" meta of
421420
Just (MetaList xs) -> map metaValueToString xs

0 commit comments

Comments
 (0)