L
L
lavezzi12019-02-04 15:17:45
JavaScript
lavezzi1, 2019-02-04 15:17:45

How to fix padding in highlight js?

Hello. There is a problem, the pre block has some strange height. What's wrong?
https://codepen.io/anon/pen/QYgVmN

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Kornilov, 2019-02-04
@lavezzi1

Line breaks are treated as empty strings by the script.
Here, removed: https://codepen.io/KorniloFF/pen/XOgopR
UPD - removed line breaks between pre and code
https://codepen.io/KorniloFF/pen/XOgopR

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question