overtype 1.0.5 → 1.1.0
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/LICENSE +1 -1
- package/README.md +26 -0
- package/dist/overtype.esm.js +1428 -3
- package/dist/overtype.esm.js.map +4 -4
- package/dist/overtype.js +1428 -3
- package/dist/overtype.js.map +4 -4
- package/dist/overtype.min.js +83 -51
- package/package.json +2 -1
- package/src/link-tooltip.js +269 -0
- package/src/overtype.js +51 -2
- package/src/parser.js +19 -0
- package/src/styles.js +3 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -383,6 +383,27 @@ Check the `examples` folder for complete examples:
|
|
|
383
383
|
- `custom-theme.html` - Theme customization
|
|
384
384
|
- `dynamic.html` - Dynamic creation/destruction
|
|
385
385
|
|
|
386
|
+
## Limitations
|
|
387
|
+
|
|
388
|
+
Due to the transparent textarea overlay approach, OverType has some intentional design limitations:
|
|
389
|
+
|
|
390
|
+
### Images Not Supported
|
|
391
|
+
Images (``) are not rendered. Variable-height images would break the character alignment between textarea and preview.
|
|
392
|
+
|
|
393
|
+
### Monospace Font Required
|
|
394
|
+
All text must use a monospace font to maintain alignment. Variable-width fonts would cause the textarea cursor position to drift from the visual text position.
|
|
395
|
+
|
|
396
|
+
### Fixed Font Size
|
|
397
|
+
All content must use the same font size. Different sizes for headers or other elements would break vertical alignment.
|
|
398
|
+
|
|
399
|
+
### Visible Markdown Syntax
|
|
400
|
+
All markdown formatting characters remain visible (e.g., `**bold**` shows the asterisks). This is intentional - hiding them would break the 1:1 character mapping.
|
|
401
|
+
|
|
402
|
+
### Links Require Modifier Key
|
|
403
|
+
Links are clickable with Cmd/Ctrl+Click only. Direct clicking would interfere with text editing since clicks need to position the cursor in the textarea.
|
|
404
|
+
|
|
405
|
+
These limitations are what enable OverType's core benefits: perfect native textarea behavior, tiny size, and zero complexity.
|
|
406
|
+
|
|
386
407
|
## Development
|
|
387
408
|
|
|
388
409
|
```bash
|
|
@@ -431,6 +452,11 @@ OverType uses a unique invisible textarea overlay approach:
|
|
|
431
452
|
- Textarea content drives everything
|
|
432
453
|
- One-way data flow: textarea → parser → preview
|
|
433
454
|
|
|
455
|
+
## Contributors
|
|
456
|
+
|
|
457
|
+
Special thanks to:
|
|
458
|
+
- [Josh Doman](https://github.com/joshdoman) - Fixed inline code formatting preservation ([#6](https://github.com/panphora/overtype/pull/6))
|
|
459
|
+
|
|
434
460
|
## License
|
|
435
461
|
|
|
436
462
|
MIT
|