nizel-plugin-hidden-comments
v0.1.0
Published
Markdown HTML comment rendering modes for Nizel.
Readme
nizel-plugin-hidden-comments
Render Markdown HTML comments as first-class Nizel content.
import { hiddenCommentsPlugin } from 'nizel-plugin-hidden-comments';
const html = await useNizel({
plugins: [hiddenCommentsPlugin({ mode: 'hide' })],
}).html('Visible <!-- internal note --> text');Modes
hiderenders a copyable, PDF text-layer friendly hidden span.smallrenders the comment as small muted text.renderrenders the comment at the normal inline size.removeremoves comments from the rendered document.
The plugin does not inject CSS by default. Use nizel-style for standard styling, or pass injectCss: true when a standalone render needs inline rules.
