Commit 03b1f651 authored by pestov's avatar pestov
Browse files

Add superscript to handleHi

parent 650ffe40
......@@ -101,3 +101,7 @@ section {
.subscript {
vertical-align: sub;
}
.superscript {
vertical-align: super;
}
......@@ -133,6 +133,9 @@ class TranscriptionService extends CommonTransformService
elseif (isset($hi[1]) && !empty($hi[1]) && 'subscript' === $hi[1]) {
$htmlEl->setAttribute('class', 'subscript');
}
elseif (isset($hi[1]) && !empty($hi[1]) && 'superscript' === $hi[1]) {
$htmlEl->setAttribute('class', 'superscript');
}
elseif (isset($hi[1]) && !empty($hi[1]) && 'centre' === $hi[1]) {
$htmlEl = $doc->p();
$htmlEl->setAttribute('class', 'left');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment