juxscript 1.0.14 → 1.0.16
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/lib/components/write.ts +9 -2
- package/package.json +1 -1
- package/presets/notion.css +1143 -288
- package/lib/components/hero1/hero1.ts +0 -196
- package/lib/components/hero1/index.js +0 -4
- package/presets/global.css +0 -1130
package/lib/components/write.ts
CHANGED
|
@@ -50,7 +50,13 @@ export class Write {
|
|
|
50
50
|
...options
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Set HTML mode (chainable setter)
|
|
55
|
+
*/
|
|
56
|
+
html(enabled: boolean = true): this {
|
|
57
|
+
this.options.html = enabled;
|
|
58
|
+
return this;
|
|
59
|
+
}
|
|
54
60
|
/**
|
|
55
61
|
* Render content to target element
|
|
56
62
|
* Falls back to body if no target specified
|
|
@@ -281,4 +287,5 @@ export function writeSpan(content: string, options: Omit<WriteOptions, 'tagType'
|
|
|
281
287
|
// Write div (explicit)
|
|
282
288
|
export function writeDiv(content: string, options: Omit<WriteOptions, 'tagType'> = {}): Write {
|
|
283
289
|
return new Write(content, { ...options, tagType: 'div' });
|
|
284
|
-
}
|
|
290
|
+
}
|
|
291
|
+
|