You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- ...
- Mean <font color="#f48fb1"> $x_k = m(u_k)$ nonlinear </font>
- ...
or
Mean <font color="#f48fb1"> $x_k = m(u_k)$ nonlinear </font>
The formula here won't be parsed. However, in VSCode it is rendered correctly. This problem is temporarily solved in my project:
constregex1=/<p>(.*?)<font color="(.*?)">(.*?)<\/p>/g;constregex2=/<li>(.*?)<font color="(.*?)">(.*?)<\/li>/g;constregex_p=/<p>(.*?)<\/p>/g;functionupdateMd(){// this is a tauri applicationinvoke('read_markdown',{filename: filename}).then((value)=>{md_context.value=md.render(value);md_context.value=md_context.value.replace(regex1,(match,p1,p2,p3)=>{p3=md.render(p3);p3=p3.replace(regex_p,(match,p1)=>{returnp1;});return`<p>${p1}<font color="${p2}">${p3}</p>`;});md_context.value=md_context.value.replace(regex2,(match,p1,p2,p3)=>{p3=md.render(p3);p3=p3.replace(regex_p,(match,p1)=>{returnp1;});return`<li>${p1}<font color="${p2}">${p3}</li>`;});})}
The text was updated successfully, but these errors were encountered:
The modules are:
and the markdown file has lines with the forms:
The formula here won't be parsed. However, in VSCode it is rendered correctly. This problem is temporarily solved in my project:
The text was updated successfully, but these errors were encountered: