Add strike command to HTML PDF parser (Fixes #3069)

This commit is contained in:
Sean Engelhardt 2017-03-08 15:47:40 +01:00
parent 48f7c258df
commit 6dc52c6fe2

View File

@ -369,6 +369,7 @@ angular.module('OpenSlidesApp.core.pdf', [])
"h5": ["font-size:10"], "h5": ["font-size:10"],
"h6": ["font-size:10"], "h6": ["font-size:10"],
"a": ["color:blue", "text-decoration:underline"], "a": ["color:blue", "text-decoration:underline"],
"strike": ["text-decoration:line-through"],
"del": ["color:red", "text-decoration:line-through"], "del": ["color:red", "text-decoration:line-through"],
"ins": ["color:green", "text-decoration:underline"] "ins": ["color:green", "text-decoration:underline"]
}, },
@ -546,6 +547,7 @@ angular.module('OpenSlidesApp.core.pdf', [])
case "i": case "i":
case "ins": case "ins":
case "del": case "del":
case "strike":
currentParagraph = parseChildren(alreadyConverted, element, currentParagraph, styles.concat(elementStyles[nodeName]), diff_mode); currentParagraph = parseChildren(alreadyConverted, element, currentParagraph, styles.concat(elementStyles[nodeName]), diff_mode);
break; break;
case "table": case "table":