Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Working Groups
AsciiDoc WG
asciidoc.org
Commits
c570b437
Verified
Commit
c570b437
authored
Apr 19, 2022
by
Dan Allen
Browse files
quote alt text of block image
parent
1d768573
Pipeline
#3458
passed with stage
in 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/document-model-converter.js
View file @
c570b437
...
...
@@ -131,7 +131,7 @@ class DocumentModelConverter {
if
(
target
.
endsWith
(
'
.svg
'
))
{
return
this
.
baseConverter
.
convert
(
node
,
transform
)
}
const
img
=
`<img src="
${
node
.
getImageUri
(
target
)}
" alt=
${
encodeAttributeValue
(
node
.
getAlt
())}
/>`
const
img
=
`<img src="
${
node
.
getImageUri
(
target
)}
" alt=
"
${
encodeAttributeValue
(
node
.
getAlt
())}
"
/>`
const
mimeType
=
target
.
endsWith
(
'
png
'
)
?
'
image/png
'
:
'
image/jpeg
'
const
targetInfo
=
parse
(
target
)
return
`<div class="imageblock">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment