@notectl/core 0.0.10 → 0.0.11
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 +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/notectl-core.js +4 -4
- package/dist/notectl-core.js.map +1 -1
- package/dist/notectl-core.mjs +216 -181
- package/dist/notectl-core.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ Most editors bolt formatting on top of `contenteditable` and hope for the best.
|
|
|
33
33
|
<br />
|
|
34
34
|
|
|
35
35
|
## Wanna try?
|
|
36
|
-
Check out the [live playground](
|
|
36
|
+
Check out the [live playground](https://samyssmile.github.io/notectl/playground/) — no install required.
|
|
37
37
|
|
|
38
38
|
## Wanna see full working example?
|
|
39
39
|
`examples/vanillajs/` is a great place to see everything in action.
|
package/dist/index.d.ts
CHANGED
|
@@ -580,6 +580,16 @@ export declare class HeadingPlugin implements Plugin_2 {
|
|
|
580
580
|
*/
|
|
581
581
|
private toggleHeading;
|
|
582
582
|
private setBlockType;
|
|
583
|
+
/**
|
|
584
|
+
* Adds removeMark steps for each excluded mark type found
|
|
585
|
+
* on the block's inline text content.
|
|
586
|
+
*/
|
|
587
|
+
private stripExcludedMarks;
|
|
588
|
+
/**
|
|
589
|
+
* Clears excluded mark types from stored marks so that
|
|
590
|
+
* subsequent typing does not reintroduce them.
|
|
591
|
+
*/
|
|
592
|
+
private clearExcludedStoredMarks;
|
|
583
593
|
}
|
|
584
594
|
|
|
585
595
|
export declare interface HighlightConfig {
|
|
@@ -1013,6 +1023,12 @@ export declare interface NodeSpec<T extends string = string> {
|
|
|
1013
1023
|
readonly isolating?: boolean;
|
|
1014
1024
|
/** If true, node can be selected as an object via mouse interaction. */
|
|
1015
1025
|
readonly selectable?: boolean;
|
|
1026
|
+
/**
|
|
1027
|
+
* Mark types that are incompatible with this block type.
|
|
1028
|
+
* When a block is converted to this type, marks listed here
|
|
1029
|
+
* are stripped from the block's inline content.
|
|
1030
|
+
*/
|
|
1031
|
+
readonly excludeMarks?: readonly string[];
|
|
1016
1032
|
/** Serializes the block to an HTML string. `content` is the pre-serialized inline children. */
|
|
1017
1033
|
readonly toHTML?: (node: BlockNode, content: string) => string;
|
|
1018
1034
|
/** Rules for matching HTML elements to this block type during parsing. */
|