@tentman/mdsvex
v0.1.1
Published
Mdsvex integration for Tentman content components and directives.
Readme
@tentman/mdsvex
Mdsvex integration for Tentman projects. It resolves Tentman content components and directive syntax into mdsvex-compatible Svelte output.
Install
npm install @tentman/mdsvex @tentman/coreUse this package in a Tentman-backed Svelte or SvelteKit site that already uses mdsvex.
Markdown Images
Image Links remain standard Markdown composition. Write linked images as a link wrapping image content:
[](/events)Tentman's images.attrs field config is an Authorable Image Attribute grant from a Site
Developer to Site Editors. It is not a developer-facing render-attribute system. In v1,
Tentman's mdsvex integration supports the maxWidth Image Source Attribute when it is stored on
an image in Source Markdown:
{maxWidth="480px"}
[{maxWidth="480px"}](/events)Valid maxWidth values render as max-width on the image. The supported allowlist is exactly
0, numeric px, rem, em, ch, vw, vh, vmin, vmax, and % values. Unsafe values
such as none, calc(...), CSS variables, URLs, arbitrary style strings, and unsupported
attributes are not rendered as HTML attributes or styles. Other Downstream Renderers are the Site
Developer's responsibility.
