tnx-shared 5.3.240 → 5.3.241

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2250,6 +2250,7 @@
2250
2250
  _this.height = 250;
2251
2251
  _this.useMathJaxMenu = false;
2252
2252
  _this.autoScrollBottom = false;
2253
+ _this.isHtml = true;
2253
2254
  for (var key in init) {
2254
2255
  _this[key] = init[key];
2255
2256
  }
@@ -54386,7 +54387,9 @@
54386
54387
  var autoScrollBottom = !!((_a = $this.control) === null || _a === void 0 ? void 0 : _a.autoScrollBottom);
54387
54388
  var output = $this.mathContent.nativeElement;
54388
54389
  var content = ((_b = $this.content) === null || _b === void 0 ? void 0 : _b.trim()) || '';
54389
- content = content.replace(/\n/g, '<br>');
54390
+ if (!$this.control.isHtml) {
54391
+ content = content.replace(/\n/g, '<br>');
54392
+ }
54390
54393
  output.innerHTML = content;
54391
54394
  if ($this.mathJaxObject.texReset) {
54392
54395
  $this.mathJaxObject.texReset();