aprog 1.6.9 → 1.7.1
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/package.json +1 -1
- package/src/aprog.js +9 -5
package/package.json
CHANGED
package/src/aprog.js
CHANGED
|
@@ -1350,10 +1350,14 @@ export const attachCustomTitle = (element, text) => {
|
|
|
1350
1350
|
|
|
1351
1351
|
export const parseCustomMarkup = (text) => {
|
|
1352
1352
|
text = text.replace(/```([\s\S]*?)```/g, (match, p1) => {
|
|
1353
|
-
return `<pre><code>${p1.trim()}</code></pre>`;
|
|
1353
|
+
return `<pre style="gemini"><code style="font-family: Monospaced, serif; font-style: italic; font-weight: 100; letter-spacing: 2px;">${p1.trim()}</code></pre>`;
|
|
1354
1354
|
});
|
|
1355
|
-
|
|
1356
|
-
text = text.replace(
|
|
1357
|
-
|
|
1358
|
-
|
|
1355
|
+
|
|
1356
|
+
text = text.replace(/\*\*(.*?)\*\*/g, '<strong style="font-weight: 700;">$1</strong>');
|
|
1357
|
+
|
|
1358
|
+
text = text.replace(/`([^`]+?)`/g, '<code style="font-family: Monospaced, serif; font-style: italic; font-weight: 100; letter-spacing: 2px;">$1</code>');
|
|
1359
|
+
|
|
1360
|
+
text = text.replace(/^\* (.+)$/gm, '<li style="font-family: Times New Roman, serif; font-weight: 400;">$1</li>');
|
|
1361
|
+
|
|
1362
|
+
return `<div style="font-family: Times New Roman, serif; font-weight: 400;">${text}</div>`;
|
|
1359
1363
|
}
|