We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59dc6b1 + 98c532f commit 670681bCopy full SHA for 670681b
mathjax3-ts/adaptors/lite/Parser.ts
@@ -339,6 +339,10 @@ export class LiteParser implements MinDOMParser<LiteDocument> {
339
* @return{string} The serialized element (like innerHTML)
340
*/
341
public serializeInner(adaptor: LiteAdaptor, node: LiteElement) {
342
+ const PCDATA = (this.constructor as typeof LiteParser).PCDATA;
343
+ if (PCDATA.hasOwnProperty(node.kind)) {
344
+ return adaptor.childNodes(node).map(x => adaptor.value(x)).join('');
345
+ }
346
return adaptor.childNodes(node).map(x => {
347
const kind = adaptor.kind(x);
348
return (kind === '#text' ? this.protectHTML(adaptor.value(x)) :
0 commit comments