overtype 1.2.6 → 1.2.7
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/README.md +6 -6
- package/dist/overtype.cjs +3 -3
- package/dist/overtype.cjs.map +2 -2
- package/dist/overtype.esm.js +3 -3
- package/dist/overtype.esm.js.map +2 -2
- package/dist/overtype.js +3 -3
- package/dist/overtype.js.map +2 -2
- package/dist/overtype.min.js +15 -15
- package/package.json +1 -1
- package/src/parser.js +2 -2
package/README.md
CHANGED
|
@@ -5,12 +5,12 @@ A lightweight markdown editor library with perfect WYSIWYG alignment using an in
|
|
|
5
5
|
## Live Examples
|
|
6
6
|
|
|
7
7
|
🎮 **Try it out**: [Interactive demos on overtype.dev](https://overtype.dev)
|
|
8
|
-
- [Basic Editor](https://overtype.dev/#basic-editor)
|
|
9
|
-
- [With Toolbar](https://overtype.dev/#toolbar)
|
|
10
|
-
- [Multiple Instances](https://overtype.dev
|
|
11
|
-
- [View Modes](https://overtype.dev
|
|
12
|
-
- [
|
|
13
|
-
- [All
|
|
8
|
+
- [Basic Editor](https://overtype.dev/#basic-editor) - Minimal setup with live preview
|
|
9
|
+
- [With Toolbar](https://overtype.dev/#toolbar) - Full formatting toolbar
|
|
10
|
+
- [Multiple Instances](https://overtype.dev/demo.html#multiple-instances) - Several editors on one page
|
|
11
|
+
- [View Modes](https://overtype.dev/demo.html#view-modes) - Preview synchronization
|
|
12
|
+
- [Themes](https://overtype.dev/demo.html#themes) - Light/dark theme switching
|
|
13
|
+
- [All Features](https://overtype.dev/demo.html#markdown-features) - Complete markdown showcase
|
|
14
14
|
|
|
15
15
|
## Features
|
|
16
16
|
|
package/dist/overtype.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* OverType v1.2.
|
|
2
|
+
* OverType v1.2.7
|
|
3
3
|
* A lightweight markdown editor library with perfect WYSIWYG alignment
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @author Demo User
|
|
@@ -285,13 +285,13 @@ var MarkdownParser = class {
|
|
|
285
285
|
const sanctuary = sanctuaries.get(placeholder);
|
|
286
286
|
let replacement;
|
|
287
287
|
if (sanctuary.type === "code") {
|
|
288
|
-
replacement = `<code><span class="syntax-marker">${sanctuary.openTicks}</span>${
|
|
288
|
+
replacement = `<code><span class="syntax-marker">${sanctuary.openTicks}</span>${sanctuary.content}<span class="syntax-marker">${sanctuary.closeTicks}</span></code>`;
|
|
289
289
|
} else if (sanctuary.type === "link") {
|
|
290
290
|
let processedLinkText = sanctuary.linkText;
|
|
291
291
|
sanctuaries.forEach((innerSanctuary, innerPlaceholder) => {
|
|
292
292
|
if (processedLinkText.includes(innerPlaceholder)) {
|
|
293
293
|
if (innerSanctuary.type === "code") {
|
|
294
|
-
const codeHtml = `<code><span class="syntax-marker">${innerSanctuary.openTicks}</span>${
|
|
294
|
+
const codeHtml = `<code><span class="syntax-marker">${innerSanctuary.openTicks}</span>${innerSanctuary.content}<span class="syntax-marker">${innerSanctuary.closeTicks}</span></code>`;
|
|
295
295
|
processedLinkText = processedLinkText.replace(innerPlaceholder, codeHtml);
|
|
296
296
|
}
|
|
297
297
|
}
|