carbon-app / carbon

:black_heart: Create and share beautiful images of your source code

Home Page:https://carbon.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Formatting issue

vvscode opened this issue · comments

Describe the bug
Incorrect formatting in exported image

To Reproduce
Steps to reproduce the behavior:

  1. Use next code
const button = element.querySelector('.actionButton')
const textWrapper = element.querySelector('.textElemenet')

button.addEventListener('click', () => {
  textWrapper.innerHTML = `button is <strong>clicked</strong>`
})
  1. Export as image (via copy image to clipboard or via export)

Screenshots
Expected:
image

Recieved:
carbon
image

If applicable, add screenshots to help explain your problem.

Code snippet
const button = element.querySelector('.actionButton')
const textWrapper = element.querySelector('.textElemenet')

button.addEventListener('click', () => {
textWrapper.innerHTML = button is <strong>clicked</strong>
})

Exporting same snippet, I'm getting correct image
carbon (2)

YOUR WEB BROWSER'S TECHNICAL DETAILS:
Here is a more detailed read out of some technical information about your system.

Software Type - Web Browser
Hardware Type - Computer
Browser version (full)- 116.0.5845.179
Operating System version (full) - 13.4.1
Layout Engine - Blink
Configured Languages - English
Device Pixel Ratio - 2
Browser GMT Offset +03:00
[Navigator Platform](https://www.whatismybrowser.com/detect/navigator-platform) - [Intel based Mac](https://www.whatismybrowser.com/detect/navigator-platform)
Vendor - Google Inc.
No. of logical CPU cores - 10
RAM - 8 GB
Maximum Touch Points - 0
WebGL Vendor - Google Inc. (Apple)
WebGL Renderer - ANGLE (Apple, Apple M1 Pro, OpenGL 4.1)

can confirm, that on another laptop with more fresh version of chrome everything works fine