diff --git a/scripts/exportContentWidth.test.ts b/scripts/exportContentWidth.test.ts new file mode 100644 index 00000000..14712d9b --- /dev/null +++ b/scripts/exportContentWidth.test.ts @@ -0,0 +1,381 @@ +/** + * #467: "Is there a way how to change the width of exported HTML?" — there was + * not. The exporter wrote `max-width: 900px` into every file it produced, which + * is neither the user's Preview → Max width (#346–#349, renamed in #456) nor + * even the app's own default of 880. + * + * Everything below resolves the stylesheet the export actually emits, rather + * than matching on the source of the template that emits it. A test that + * grepped `export.ts` for a width would stay green with the value going + * nowhere: the declaration only means something once it is inside the `