fika-editor 3.5.1 → 3.5.3
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.
|
@@ -52,6 +52,8 @@ export interface TextFitRun {
|
|
|
52
52
|
export interface TextFitBlock {
|
|
53
53
|
/** Plain text of the block (markers stripped). */
|
|
54
54
|
text: string;
|
|
55
|
+
/** Explicit preformatted text and hard breaks retain authored whitespace. */
|
|
56
|
+
whiteSpace?: 'pre-wrap';
|
|
55
57
|
/** Authored font size in px (its largest run, to stay safe). */
|
|
56
58
|
size: number;
|
|
57
59
|
bold?: boolean;
|
|
@@ -263,7 +265,7 @@ export interface ExtractOptions {
|
|
|
263
265
|
* and top-level paragraph/quote becomes one block; a block's representative font
|
|
264
266
|
* size is the largest inline size in it (so the clip pad never under-
|
|
265
267
|
* estimates), while wrapping measures the mixed-size run profile.
|
|
266
|
-
*
|
|
268
|
+
* Empty paragraphs occupy one native line. List items are tagged
|
|
267
269
|
* so the marker indent is accounted for.
|
|
268
270
|
*/
|
|
269
271
|
export declare function extractFitBlocksFromHtml(html: string, options: ExtractOptions): ExtractedContent;
|