feat: support \angl and \angln (#2334)

* Support \angl and \angln

* Update screenshots

* Update documentation
This commit is contained in:
Ron Kok
2020-07-25 06:53:11 -07:00
committed by GitHub
parent d1ad2e0b8b
commit e76857ec03
10 changed files with 88 additions and 11 deletions

View File

@@ -304,14 +304,15 @@ const svgSpan = function(
const encloseSpan = function(
inner: HtmlDomNode,
label: string,
pad: number,
topPad: number,
bottomPad: number,
options: Options,
): DomSpan | SvgSpan {
// Return an image span for \cancel, \bcancel, \xcancel, or \fbox
// Return an image span for \cancel, \bcancel, \xcancel, \fbox, or \angl
let img;
const totalHeight = inner.height + inner.depth + 2 * pad;
const totalHeight = inner.height + inner.depth + topPad + bottomPad;
if (/fbox|color/.test(label)) {
if (/fbox|color|angl/.test(label)) {
img = buildCommon.makeSpan(["stretchy", label], [], options);
if (label === "fbox") {