Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
Fix a bug where embedded images were broken
Browse files Browse the repository at this point in the history
Missing a `/` in the asset paths of embedded images.
  • Loading branch information
Chalarangelo committed Dec 31, 2020
1 parent c8a8541 commit fb1617f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/parsers/markdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class MarkdownParser {
result.fullDescription = result.fullDescription.replace(
/(<p>)*<img src="\.\/([^"]+)"([^>]*)>(<\/p>)*/g,
(match, openTag, imgSrc, imgRest) =>
`<img class="card-image" src="${assetPath}${imgSrc}"${imgRest}>`
`<img class="card-image" src="${assetPath}/${imgSrc}"${imgRest}>`
);
} else {
Object.entries(codeBlocks).forEach(([key, value]) => {
Expand Down

0 comments on commit fb1617f

Please sign in to comment.