@ones-editor/editor 3.0.9-beta.1 → 3.0.9-beta.2
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.
package/dist/index.js
CHANGED
|
@@ -76493,6 +76493,11 @@ ${codeText}
|
|
|
76493
76493
|
if (token.type === "codespan") {
|
|
76494
76494
|
return codespanToText(token, attributes);
|
|
76495
76495
|
}
|
|
76496
|
+
if (token.type === "confluenceText") {
|
|
76497
|
+
return textTokenToText(token, {
|
|
76498
|
+
...attributes
|
|
76499
|
+
}, options);
|
|
76500
|
+
}
|
|
76496
76501
|
if (token.type === "html") {
|
|
76497
76502
|
const html = token.text;
|
|
76498
76503
|
const testBr = html.trim().toLowerCase();
|
|
@@ -76956,6 +76961,31 @@ ${codeText}
|
|
|
76956
76961
|
const extendedCustomTag = () => ({
|
|
76957
76962
|
extensions: [extCustomTag()]
|
|
76958
76963
|
});
|
|
76964
|
+
const confluenceTextTag = () => ({
|
|
76965
|
+
extensions: [{
|
|
76966
|
+
name: "confluenceText",
|
|
76967
|
+
level: "inline",
|
|
76968
|
+
start(src) {
|
|
76969
|
+
return src.indexOf("<cf-text>");
|
|
76970
|
+
},
|
|
76971
|
+
tokenizer(src) {
|
|
76972
|
+
const rule = /^<cf-text>([\s\S]*?)<\/cf-text>/;
|
|
76973
|
+
const match = rule.exec(src);
|
|
76974
|
+
if (match) {
|
|
76975
|
+
return {
|
|
76976
|
+
type: "confluenceText",
|
|
76977
|
+
raw: match[0],
|
|
76978
|
+
text: match[1]
|
|
76979
|
+
};
|
|
76980
|
+
}
|
|
76981
|
+
return void 0;
|
|
76982
|
+
},
|
|
76983
|
+
renderer(token) {
|
|
76984
|
+
console.log("confluenceText token:", token);
|
|
76985
|
+
return `<cf-text>${token.text}</cf-text>`;
|
|
76986
|
+
}
|
|
76987
|
+
}]
|
|
76988
|
+
});
|
|
76959
76989
|
const latexOptions = {
|
|
76960
76990
|
render: (formula, displayMode) => ""
|
|
76961
76991
|
};
|
|
@@ -76964,6 +76994,7 @@ ${codeText}
|
|
|
76964
76994
|
mangle: false
|
|
76965
76995
|
});
|
|
76966
76996
|
marked.marked.use(extendedCustomTag());
|
|
76997
|
+
marked.marked.use(confluenceTextTag());
|
|
76967
76998
|
function markdownToDoc(markdown2, options) {
|
|
76968
76999
|
const lexer = new marked.marked.Lexer();
|
|
76969
77000
|
const tokens = lexer.lex(markdown2);
|
|
@@ -78515,6 +78546,19 @@ ${docStr}
|
|
|
78515
78546
|
}
|
|
78516
78547
|
});
|
|
78517
78548
|
}
|
|
78549
|
+
function confluenceText(ts) {
|
|
78550
|
+
ts.addRule("cf-text", {
|
|
78551
|
+
filter: ["cf-text"],
|
|
78552
|
+
replacement(content, node) {
|
|
78553
|
+
if (!content.trim())
|
|
78554
|
+
return "";
|
|
78555
|
+
if (content.includes("abc")) {
|
|
78556
|
+
console.log("cf-text content:", content);
|
|
78557
|
+
}
|
|
78558
|
+
return `<cf-text>${node.textContent}</cf-text>`;
|
|
78559
|
+
}
|
|
78560
|
+
});
|
|
78561
|
+
}
|
|
78518
78562
|
const logger$P = getLogger("html-to-doc");
|
|
78519
78563
|
const turndownService = new TurndownService();
|
|
78520
78564
|
turndownService.use(codeListToCode);
|
|
@@ -78531,6 +78575,7 @@ ${docStr}
|
|
|
78531
78575
|
turndownService.use(textColor);
|
|
78532
78576
|
turndownService.use(fontSize);
|
|
78533
78577
|
turndownService.use(superScript);
|
|
78578
|
+
turndownService.use(confluenceText);
|
|
78534
78579
|
function htmlToBlocks$1(html, options) {
|
|
78535
78580
|
const subDoc = processedHtmlToDocByMarkdown(html, options);
|
|
78536
78581
|
if (!subDoc) {
|
|
@@ -78554,7 +78599,7 @@ ${docStr}
|
|
|
78554
78599
|
}
|
|
78555
78600
|
}
|
|
78556
78601
|
const markdown2 = turndownService.turndown(htmlFragment);
|
|
78557
|
-
logger$P.debug(markdown2);
|
|
78602
|
+
logger$P.debug(`markdown: ${markdown2}`);
|
|
78558
78603
|
return markdownToDoc(markdown2, {
|
|
78559
78604
|
htmlToDoc: (html2) => {
|
|
78560
78605
|
const doc2 = htmlToDocByMarkdown(html2, options);
|
|
@@ -79082,6 +79127,57 @@ ${docStr}
|
|
|
79082
79127
|
}
|
|
79083
79128
|
return null;
|
|
79084
79129
|
}
|
|
79130
|
+
setTimeout(() => {
|
|
79131
|
+
const doc2 = htmlToDoc(`
|
|
79132
|
+
<p><cf-text>markdown \u8F6C\u4E49\uFF1A</cf-text></p>
|
|
79133
|
+
<p><cf-text>statement:
|
|
79134
|
+
ns_risefalltime v1=0.2f*vdd vh=0.8*fvdd tr=0.6n tf=0.6n file=./post_result_1224/tc2901_allmr_dc_ck_skew_3001200.output/time type=gate
|
|
79135
|
+
simulation:</cf-text></p>
|
|
79136
|
+
<p><cf-text>1, $abc$ , $a</cf-text></p>
|
|
79137
|
+
<div class="ones-code-card"><pre><code data-mode="manual" class="lang-java"><
|
|
79138
|
+
<p></code></pre></div>
|
|
79139
|
+
<p><cf-text><
|
|
79140
|
+
<p>
|
|
79141
|
+
</cf-text></p>
|
|
79142
|
+
<p><cf-text>\u8BED\u6CD5\u89E3\u6790bug\uFF1A</cf-text></p>
|
|
79143
|
+
<p><cf-text>\u9700\u8981\u627E\u5230\u6B63\u786E\u7684\u5F00\u59CB\u548C\u7ED3\u675F\uFF1A</cf-text></p>
|
|
79144
|
+
<p><cf-text>imulation +</cf-text><u><cf-text>/- 3*gon- 3*global sigma, SS_global=T simulation+3*global sigma, tutlid, id_global= TT simulation*(1</cf-text></u><cf-text>/</cf-text><u><cf-text>- 3* global sigma), +for nmos vt, FF_global=T simulation*(1+3*global sigma), SS_global=T simulation *(1-3*global sigma)</cf-text></u></p>
|
|
79145
|
+
<p><cf-text>max(((rshO * 1r) + rend_calc) / (wr - dw)) * (1 + varn2*(v(plus, minus))</cf-text><strong><cf-text>(v(plus, minus))) * (1 + tcr1</cf-text></strong><cf-text>(pt - 25) + tor2*(pt - 25)*(pt - 25)), 1e-5)</cf-text></p>
|
|
79146
|
+
<p><cf-text>verification -> report -> OK -> next*6 -> start</cf-text></p>
|
|
79147
|
+
<p><cf-text>abc</cf-text></p>
|
|
79148
|
+
<p><cf-text>+ abc</cf-text></p>
|
|
79149
|
+
<p><cf-text>+ 0.01+(2*ldjskf+(2*bp) 0</cf-text></p>
|
|
79150
|
+
<p><cf-text>[a-zA-Z]</cf-text></p>
|
|
79151
|
+
<p><cf-text>\u5185\u5BB9\u4E3A\u7A7A\u7684\u8BED\u6CD5\uFF0C\u4E0D\u89E3\u6790\uFF0C\u5C55\u793A\u6587\u672C\uFF1A</cf-text></p>
|
|
79152
|
+
<p><cf-text>1 </cf-text><cf-text>\u2013</cf-text><cf-text>> abc </cf-text><cf-text>\u2013</cf-text><cf-text>> bcd</cf-text></p>
|
|
79153
|
+
<p><cf-text>!!abc</cf-text></p>
|
|
79154
|
+
<p><u><cf-text>br='5+dbr_bjt'+dbr_bjt=(1e-006) /l</cf-text></u><cf-text>(-2e-005)/w/nf)</cf-text><u><cf-text>(8e-11)/ ((w/nf)*(w/nf))</cf-text></u><cf-text>(1e-012)/ ((w/nf) *1)+(0)/(w/nf)/(w/nf)/l/l'</cf-text></p>
|
|
79155
|
+
<p><cf-text>\u8F6C\u6362\u5DEE\u5F02\uFF1A</cf-text></p>
|
|
79156
|
+
<p><cf-text>lfsrseed=</cf-text><cf-text>[1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31]</cf-text></p>
|
|
79157
|
+
<p><cf-text>*</cf-text></p>
|
|
79158
|
+
<p><cf-text>**</cf-text></p>
|
|
79159
|
+
<p><cf-text>***</cf-text></p>
|
|
79160
|
+
<ul>
|
|
79161
|
+
<li>
|
|
79162
|
+
<ul>
|
|
79163
|
+
<li>
|
|
79164
|
+
<ul>
|
|
79165
|
+
<li>
|
|
79166
|
+
<ul>
|
|
79167
|
+
<li><cf-text>abc ****</cf-text></li>
|
|
79168
|
+
</ul>
|
|
79169
|
+
</li>
|
|
79170
|
+
</ul>
|
|
79171
|
+
</li>
|
|
79172
|
+
</ul>
|
|
79173
|
+
</li>
|
|
79174
|
+
</ul>
|
|
79175
|
+
<p><cf-text>GVO- COM VO - VALUE = {IF(V(VIN, COM) <V(VC-, COM), ((V(VC-, COM) -V(VIN, COM)) *G) , 0)}</cf-text></p>
|
|
79176
|
+
<p><cf-text>\u7279\u6B8A\u7A7A\u683C\uFF1A</cf-text></p>
|
|
79177
|
+
<p><cf-text>A B C\u3000D\u2002E\u2003F\u2009G\u200AH\u200BI J</cf-text></p>
|
|
79178
|
+
`);
|
|
79179
|
+
console.log(doc2);
|
|
79180
|
+
}, 1e3);
|
|
79085
79181
|
class HtmlDataConverter {
|
|
79086
79182
|
async fromData(editor, data2) {
|
|
79087
79183
|
const result = {};
|
|
@@ -96777,7 +96873,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96777
96873
|
}
|
|
96778
96874
|
}
|
|
96779
96875
|
});
|
|
96780
|
-
editor.version = "3.0.9-beta.
|
|
96876
|
+
editor.version = "3.0.9-beta.2";
|
|
96781
96877
|
return editor;
|
|
96782
96878
|
}
|
|
96783
96879
|
function isDoc(doc2) {
|
|
@@ -96911,7 +97007,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96911
97007
|
OnesEditorDropTarget.register(editor);
|
|
96912
97008
|
OnesEditorTocProvider.register(editor);
|
|
96913
97009
|
OnesEditorExclusiveBlock.register(editor);
|
|
96914
|
-
editor.version = "3.0.9-beta.
|
|
97010
|
+
editor.version = "3.0.9-beta.2";
|
|
96915
97011
|
return editor;
|
|
96916
97012
|
}
|
|
96917
97013
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -97046,7 +97142,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97046
97142
|
}
|
|
97047
97143
|
}
|
|
97048
97144
|
});
|
|
97049
|
-
editor.version = "3.0.9-beta.
|
|
97145
|
+
editor.version = "3.0.9-beta.2";
|
|
97050
97146
|
return editor;
|
|
97051
97147
|
}
|
|
97052
97148
|
const emojis$1 = {
|