1. Remove duplicate/broken code in product tables section 2. Fix PostCSS config for Tailwind 4 3. Add @tailwindcss/postcss dependency 4. Remove --production flag from Dockerfile (sharp required) All fixes enable successful Docker build with favicon working.
26 lines
516 B
JavaScript
26 lines
516 B
JavaScript
import { detachNodeFromParent } from '../lib/xast.js';
|
|
|
|
export const name = 'removeTitle';
|
|
export const description = 'removes <title>';
|
|
|
|
/**
|
|
* Remove <title>.
|
|
*
|
|
* https://developer.mozilla.org/docs/Web/SVG/Element/title
|
|
*
|
|
* @author Igor Kalashnikov
|
|
*
|
|
* @type {import('../lib/types.js').Plugin}
|
|
*/
|
|
export const fn = () => {
|
|
return {
|
|
element: {
|
|
enter: (node, parentNode) => {
|
|
if (node.name === 'title') {
|
|
detachNodeFromParent(node, parentNode);
|
|
}
|
|
},
|
|
},
|
|
};
|
|
};
|