Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ts/output/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ export abstract class CommonOutputJax<
if (!node) return;
node.removeProperty('forcebreak');
node.removeProperty('breakable');
node.coreMO().removeProperty('forcebreak');
if (node.getProperty('process-breaks')) {
node.removeProperty('process-breaks');
for (const child of node.childNodes) {
Expand Down
6 changes: 5 additions & 1 deletion ts/output/svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ export class SVG<N, T, D> extends CommonOutputJax<
* @override
*/
get forceInlineBreaks() {
return true; // We need to break up the output into several separate SVGs
//
// When inlinebreaks are enabled, we need to break up the output
// into several separate SVGs.
//
return this.options.linebreaks.inline;
}

/**
Expand Down
8 changes: 7 additions & 1 deletion ts/output/svg/Wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,13 @@ export class SvgWrapper<N, T, D> extends CommonWrapper<
* @returns {boolean} True when embellished output is produced, false if not
*/
public toEmbellishedSVG(parents: N[]): boolean {
if (parents.length <= 1 || !this.node.isEmbellished) return false;
if (
parents.length <= 1 ||
!this.node.isEmbellished ||
this.node.parent.isEmbellished
) {
return false;
}
const style = this.coreMO().embellishedBreakStyle;
//
// At the end of the first line or beginning of the second,
Expand Down