mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-12 14:38:39 +00:00
feat: support \angl and \angln (#2334)
* Support \angl and \angln * Update screenshots * Update documentation
This commit is contained in:
@@ -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") {
|
||||
|
Reference in New Issue
Block a user