CSS was not being imported! Fixed: ✅ Added 'import ../styles/global.css' to BaseLayout.astro ✅ Rewrote CSS with plain CSS (not @apply which wasn't working) ✅ Cookie banner has inline styles as backup ✅ Font size: 16px base ✅ Solid colors: green-600 (#16a34a), gray-900 (#111827) ✅ Footer has policy links Build: 12 pages ✅
28 lines
627 B
JavaScript
28 lines
627 B
JavaScript
/**
|
||
* @typedef {import('nlcst').Root} Root
|
||
*/
|
||
|
||
import {toString} from 'nlcst-to-string'
|
||
|
||
/**
|
||
* Add support for serializing natural language.
|
||
*
|
||
* @returns {undefined}
|
||
* Nothing.
|
||
*/
|
||
export default function retextStringify() {
|
||
// eslint-disable-next-line unicorn/no-this-assignment
|
||
const self =
|
||
/** @type {import('unified').Processor<undefined, undefined, undefined, Root, string>} */ (
|
||
// @ts-expect-error -- TS in JSDoc doesn’t understand `this`.
|
||
this
|
||
)
|
||
|
||
self.compiler = compiler
|
||
}
|
||
|
||
/** @type {import('unified').Compiler<Root, string>} */
|
||
function compiler(tree) {
|
||
return toString(tree)
|
||
}
|