@ampless/plugin-youtube 1.0.0-alpha.8 → 1.0.0-alpha.9
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/editor.js +2 -1
- package/package.json +1 -1
package/dist/editor.js
CHANGED
|
@@ -190,7 +190,8 @@ var tiptapNodeToHtml = {
|
|
|
190
190
|
const videoId = String(node.attrs?.videoId ?? "").trim();
|
|
191
191
|
if (!videoId) return null;
|
|
192
192
|
const attrs = placeholderAttrs(node.attrs ?? {});
|
|
193
|
-
|
|
193
|
+
const url = `https://youtu.be/${videoId}`;
|
|
194
|
+
return `<div ${attrsToHtmlString(attrs)}><a href="${escapeAttr(url)}">${escapeAttr(url)}</a></div>`;
|
|
194
195
|
}
|
|
195
196
|
};
|
|
196
197
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ampless/plugin-youtube",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.9",
|
|
4
4
|
"description": "YouTube embed plugin for ampless — renders youtube.com / youtu.be URLs inline as iframes in tiptap + markdown posts",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|