identation with Highlight.js

Asked

Viewed 38 times

0

I’m having trouble indenting with Highlight.js, the code being generated by marked.js. Has anyone been through it or knows any solution?

index.html:

<!-- highlight.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/agate.min.css">
<!-- Codigo -->
<!-- Codigo -->
<!-- Codigo -->
<!-- Codigo -->
<script>
   hljs.initHighlightingOnLoad();
   var renderedElem = document.querySelector('.markdown-content');
   var renderedMD = marked(document.querySelector('.markdown-content').innerText);
   renderedElem.innerHTML = renderedMD;
</script>

Entree:

.flow-text {
    letter-spacing: 2px;
    font-weight: 300;
    color: #424242;
    margin-top: 1rem;
    margin-bottom: 2rem
}

In the browser: inserir a descrição da imagem aqui

  • 1

    Enter the full code.

  • base.html: https://pastebin.com/33DHgYm8 / home.html: https://pastebin.com/kzCaa2b6

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.