We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96cac18 + f3e97dc commit 8a26918Copy full SHA for 8a26918
packages/teleport-plugin-html-base-component/src/node-handlers.ts
@@ -962,9 +962,12 @@ const handleAttributes = (
962
extractDefaultValueFromRefPath(value.defaultValue, content.refPath)
963
)
964
965
- if ((elementType === 'img' || elementType === 'video') && attrKey === 'src') {
+ if (
966
+ (elementType === 'img' || elementType === 'video') &&
967
+ attrKey === 'src' &&
968
+ !extractedValue.startsWith('http')
969
+ ) {
970
const path = join(relative(join(...outputOptions.folderPath), './'), extractedValue)
-
971
HASTUtils.addAttributeToNode(htmlNode, attrKey, path)
972
break
973
}
0 commit comments