Skip to content

Commit

Permalink
feat: include href for <image> in transformAssetUrls (close #12)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 22, 2018
1 parent 97e772c commit 86fddc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/templateCompilerModules/assetUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const defaultOptions: AssetURLOptions = {
video: ['src', 'poster'],
source: 'src',
img: 'src',
image: 'xlink:href'
image: ['xlink:href', 'href']
}

export default (userOptions?: AssetURLOptions) => {
Expand Down

0 comments on commit 86fddc2

Please sign in to comment.