planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

24
node_modules/hast-util-to-mdast/lib/handlers/iframe.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
'use strict'
module.exports = iframe
var resolve = require('../util/resolve')
var wrapText = require('../util/wrap-text')
function iframe(h, node) {
var src = node.properties.src
var title = node.properties.title
// Only create a link if there is a title.
// We cant use the content of the frame because conforming HTML parsers treat
// it as text, whereas legacy parsers treat it as HTML, so it will likely
// contain tags that will show up in text.
if (src && title) {
return {
type: 'link',
title: null,
url: resolve(h, src),
children: [{type: 'text', value: wrapText(h, title)}]
}
}
}