Inline image widgets should not be displayed in code blocks

Bug report

When I type some javascript into code block like:

<template>
  <div id="app">
    <Navigation></Navigation>
    <img src="./assets/logo.png">
    <router-view/>
  </div>
</template>

and the code block will show a blank line in the middle
q

Info

  • Platform: Ubuntu
  • Platform version: 18.04
  • App Version: 4.1.0

Reproduce

Input the code provided above, and the display problem will show.

Hi Jacky,

Thank you for reporting it.
Yeah that’s a bug due to inline image widgets. It should not be displayed in code blocks.
Thanks again!

It should work as expected in v4.3.0. Thank you for reporting it!