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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/aprog.js +9 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aprog",
3
- "version": "1.6.9",
3
+ "version": "1.7.1",
4
4
  "description": "Допоміжна бібліотека js",
5
5
  "main": "index.js",
6
6
  "scripts": {
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
- text = text.replace(/\*\*(.*?)\*\*/g, '<strong>$1</strong>');
1356
- text = text.replace(/`([^`]+?)`/g, '<code>$1</code>');
1357
- text = text.replace(/^\* (.+)$/gm, '<li>$1</li>');
1358
- return text;
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
  }