kakawait / hugo-tranquilpeak-theme

A gorgeous responsive theme for Hugo blog framework
https://tranquilpeak.kakawait.com
GNU General Public License v3.0
926 stars 525 forks source link

Problem with syntax highlighter for R after bumping the version from 0.4.3 to 0.4.7 #404

Open konradsemsch opened 4 years ago

konradsemsch commented 4 years ago

Actual behavior

Before updating my tranquilpeak version from 0.4.3 BETA to 0.4.7 BETA code formatting on my website was working fine: https://konradsemsch.netlify.com/.

I have this in my config.toml file:

[params]
  syntaxHighlighter = "highlight.js"

and specifically for R lang, at the top of each of my .Rmd file I specify which highlighter color to use:

---
output:
  blogdown::html_page:
    highlight: tango
---

I haven't changed this configuration after updating to a higher version, but somehow now it stopped working. Additionally, the highlighter sometimes is behaving weird and screws my code indenting like in this example:

image

I haven't been able to settle on a good solution for this. Could you please advise what the reason could be?

kakawait commented 4 years ago

Do you have some page where I could reproduce issue?

konradsemsch commented 4 years ago

The example comes from here: https://konradsemsch.netlify.com/2019/08/caret-vs-tidymodels-comparing-the-old-and-new/

kakawait commented 4 years ago

@konradsemsch can you share with me your source (aka .md) of the given blogpost? I didn't find the reason just by checking quickly your blog but maybe will source it will be easier

konradsemsch commented 4 years ago

There you go! It's an Rmd converted to md by blogdown so perhaps the problem lays somewhere in the middle:

https://github.com/konradsemsch/playground/blob/master/content/post/2019-08-06-caret-vs-tidymodels-comparing-the-old-and-new.Rmd

kakawait commented 4 years ago

@konradsemsch one more thing do you think will be able to generate the .html file with 0.4.3 and attach to issue?

Will help me to compare what's the diff

konradsemsch commented 4 years ago

Sure, will circle back during the weekend!

konradsemsch commented 4 years ago

Sorry, this issue slipped off my radar as I haven't been blogging for a while until now that I have written another post. I bumped my theme version to the latest one and unfortunately now syntax highlighting doesn't work at all.

What would you need from my side in order to debug?