rapier-markdown-kit 1.1.85 → 1.1.87

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.
@@ -120,7 +120,7 @@ function initMarkdownIt() {
120
120
  (_rapierEmbedAssetSource?.(src) || asset && (reference || asset.codec === 'image/jxl' || asset.codec === 'image/svg+xml'))) return globalThis.RapierEmbeddedImages.imageHtml(
121
121
  reference, alt, title, size, layout, rawAlt, token.meta?.mdImage?.source, src);
122
122
  let loadable = false;
123
- try { loadable = !!src.trim() && /^(?:https?|file|blob|data):$/.test(new URL(src, document?.baseURI || globalThis.location?.href || 'https://rapier.invalid/').protocol); } catch (_) {}
123
+ try { loadable = !!src.trim() && /^(?:https?|file|blob|data):$/.test(new URL(src, globalThis.document?.baseURI || globalThis.location?.href || 'https://rapier.invalid/').protocol); } catch (_) {}
124
124
  if (!loadable) {
125
125
  const escape = md.utils.escapeHtml;
126
126
  return '<span data-rapier-markdown-image="" data-rapier-remote-src="' + escape(src) + '" data-rapier-remote-alt="' + escape(alt) + '"'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapier-markdown-kit",
3
- "version": "1.1.85",
3
+ "version": "1.1.87",
4
4
  "description": "Read, render, write and style Self-contained Markdown, and carry its optional edit ledger: the shared HTML writer, semantic renderer, stylesheet, layout, marks, pictures, Will/1, replay, authorship and offline merge. MIT, no npm dependencies.",
5
5
  "keywords": [
6
6
  "markdown",