Closed fmmarzoa closed 5 years ago
Thank you for the contribution, I will check it out and get back to you in the nearest future.
Meanwhile, check out this one https://github.com/yakivmospan/github-wikito-converter/issues/21 and https://github.com/yakivmospan/github-wikito-converter/issues/17
See if your cloned wiki doesn't have the same issue.
It actually has a similar issue, from the log I can see, that somewhere in the wiki, you are using solidity
language mark, that is unknown for marked, the tool that is used to highlight the code.
Changing solidity
to something else (such as java, text, etc.) can temporarily solve this issue.
It's not my wiki actually. I just wanted to read it in my Kindle. 🙂
On Fri, 12 Oct 2018 at 00:21, Yakiv Mospan notifications@github.com wrote:
It actually has a similar issue, from the log I can see, that somewhere in the wiki, you are using solidity language mark, that is unknown for marked https://github.com/markedjs/marked, the tool that is used to highlight the code.
Changing solidity to something else (such as java, text, etc.) can temporarily solve this issue.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yakivmospan/github-wikito-converter/issues/31#issuecomment-429139323, or mute the thread https://github.com/notifications/unsubscribe-auth/AGEsgZowXACOiZT1IcnF6RMp0Cobcc-bks5uj8R9gaJpZM4XYQLS .
-- Fran Marzoa
Amazing idea:) If you still want to reas it on kindle, download and replace each of those in each of the files manually. Thants a dirty workeround for now
Could something like this be implemented temporarily? https://github.com/markedjs/marked/issues/810#issuecomment-255519584
@zakaluka thanks, currently we have this :
this.mainRenderer.code = function(code, lang) {
code = lang === undefined ? highlight.highlightAuto(code) : highlight
.highlight(lang, code)
return `<pre class="hljs">${code.value}</pre>`
}
But we can also try to specify that options. Worth to try it.
Fixed in https://github.com/yakivmospan/github-wikito-converter/releases/tag/1.5.1. Now we are doing :
this.mainRenderer.code = function(code, lang) {
if (lang && highlight.getLanguage(lang)) {
code = highlight.highlight(lang, code, true);
} else {
code = highlight.highlightAuto(code);
}
return `<pre class="hljs">${code.value}</pre>`
}
Got this wiki cloned on wiki.wiki folder:
https://github.com/ethereum/wiki.wiki.git
Tried