doczjs / docz

✍ It has never been so easy to document your things!
https://docz.site
MIT License
23.66k stars 1.46k forks source link

Image links not correctly rendering on build #1562

Open colbyfayock opened 4 years ago

colbyfayock commented 4 years ago

Bug Report

Describe the bug

When running the build command, markdown-based images wrapped in links aren't properly rendering. For example:

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/colbyfayock/gatsby-starter-docz-netlifycms)

Renders out to HTML:

<a href="https://app.netlify.com/start/deploy?repository=https://github.com/colbyfayock/gatsby-starter-docz-netlifycms" class="css-1iv9jyz">&lt;img alt=&quot;Deploy to Netlify&quot; src=&quot;https://www.netlify.com/img/deploy/button.svg&quot; /&gt;</a>

image

To Reproduce

  1. Clone or create a new project from: https://github.com/colbyfayock/gatsby-starter-docz-netlifycms
  2. Run npm run build
  3. Run npm run serve
  4. See image not working

Expected behavior

Image should render

Environment

daydream05 commented 4 years ago

Having the same issues as well!