@markii/html 0.17.0-next.5 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/render.js +8 -6
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,7 @@ export { type ResolveImageSrc } from './image-resolve.js';
|
|
|
3
3
|
export { type ResolveHref } from './href-resolve.js';
|
|
4
4
|
export { escapeHtml } from './escape.js';
|
|
5
5
|
export { exportHtmlDocument, type ExportHtmlDocumentOptions, } from './document.js';
|
|
6
|
-
export {
|
|
7
|
-
export { failurePhrase, failureTitle, failureKindClass, dataStateClassName, } from './failure-presentation.js';
|
|
6
|
+
export { resolveScopedPath, VAULT_NAME_PREFIX, type StorePathResolution, type ValueScope, } from './resolve.js';
|
|
8
7
|
export { stringifyStoredValue } from './value-format.js';
|
|
9
8
|
export { createHtmlRegistry, mergeHtmlRegistries, registryAliases, readRegistryComponent, resolveDirectiveAlias, REGISTRY_ALIASES, type DirectiveAttributes, type HtmlRegistry, type HtmlRegistryEntry, type HtmlComponent, type HtmlRenderContext, type RegistryAlias, type RegistryAliases, type ResolvedDirective, type ValueResolution, } from './registry.js';
|
|
10
9
|
export { resolveLayoutAttributes, LAYOUT_ATTRIBUTE_KEYS, type ResolvedLayoutAttributes, } from './layout.js';
|
package/dist/index.js
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
export { renderMarkToHtml, renderMarkNodeToHtml, renderMarkInlineToHtml, } from './render.js';
|
|
7
7
|
export { escapeHtml } from './escape.js';
|
|
8
8
|
export { exportHtmlDocument, } from './document.js';
|
|
9
|
-
export {
|
|
10
|
-
export { failurePhrase, failureTitle, failureKindClass, dataStateClassName, } from './failure-presentation.js';
|
|
9
|
+
export { resolveScopedPath, VAULT_NAME_PREFIX, } from './resolve.js';
|
|
11
10
|
export { stringifyStoredValue } from './value-format.js';
|
|
12
11
|
export { createHtmlRegistry, mergeHtmlRegistries, registryAliases, readRegistryComponent, resolveDirectiveAlias, REGISTRY_ALIASES, } from './registry.js';
|
|
13
12
|
export { resolveLayoutAttributes, LAYOUT_ATTRIBUTE_KEYS, } from './layout.js';
|
package/dist/render.js
CHANGED
|
@@ -415,12 +415,14 @@ function renderDirectiveContent(name, kind, attributes, childrenHtml, plainLabel
|
|
|
415
415
|
const tag = inline ? 'span' : 'div';
|
|
416
416
|
rendered = `<${tag} data-mk-notice="" title="${escapeHtml(message)}">${rendered}</${tag}>`;
|
|
417
417
|
}
|
|
418
|
-
//
|
|
419
|
-
//
|
|
420
|
-
//
|
|
421
|
-
//
|
|
422
|
-
//
|
|
423
|
-
if (isRegisteredInline(entry) &&
|
|
418
|
+
// Mirrors `@markii/react`'s identical check in `renderDirectiveContent`:
|
|
419
|
+
// an `inline: true` component with neither content nor attributes still
|
|
420
|
+
// renders exactly as registered, wrapped in the same quiet marker and
|
|
421
|
+
// title, so the two engines produce identical markup for this case. A
|
|
422
|
+
// component given attributes draws from them and is not flagged.
|
|
423
|
+
if (isRegisteredInline(entry) &&
|
|
424
|
+
childrenHtml.trim() === '' &&
|
|
425
|
+
Object.keys(attributes).length === 0) {
|
|
424
426
|
reportDiagnostic(ctx.onDiagnostic, {
|
|
425
427
|
kind: 'empty-inline',
|
|
426
428
|
directive: name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markii/html",
|
|
3
|
-
"version": "0.17.0
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "A framework-free static HTML renderer for Markii (.mk.md): a registry-driven hast-to-HTML string engine. Zero React; for stopped-changing documents (publish, CI, email, archive).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"hast-util-to-html": "^9.0.0",
|
|
57
|
-
"@markii/core": "^0.17.0
|
|
58
|
-
"@markii/runtime": "^0.17.0
|
|
59
|
-
"@markii/stdlib": "^0.17.0
|
|
57
|
+
"@markii/core": "^0.17.0",
|
|
58
|
+
"@markii/runtime": "^0.17.0",
|
|
59
|
+
"@markii/stdlib": "^0.17.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/hast": "^3.0.4"
|