diff options
Diffstat (limited to 'src/replacer.js')
-rw-r--r-- | src/replacer.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/replacer.js b/src/replacer.js index c6aef6ef..bf28061c 100644 --- a/src/replacer.js +++ b/src/replacer.js @@ -673,12 +673,14 @@ export function postprocessImages(inputNodes) { export function postprocessVideos(inputNodes) { return postprocessHTMLTags(inputNodes, 'video', - attributes => { + (attributes, {inline}) => { const node = {type: 'video'}; node.src = attributes.get('src'); complainAboutMediaSrc(node.src); + node.inline = attributes.get('inline') ?? inline; + if (attributes.get('width')) node.width = parseInt(attributes.get('width')); if (attributes.get('height')) node.height = parseInt(attributes.get('height')); if (attributes.get('align')) node.align = attributes.get('align'); @@ -699,6 +701,7 @@ export function postprocessAudios(inputNodes) { node.inline = attributes.get('inline') ?? inline; if (attributes.get('align')) node.align = attributes.get('align'); + if (attributes.get('nameless')) node.nameless = true; return node; }); |