ddfreyne changed the topic of #nanoc to: 3.8.0 (May 4th) - 4.0.0b2 (May 23rd) | web http://nanoc.ws/ | repo http://bit.ly/XE6e3G | issues http://bit.ly/VfXaSV | forum http://ho.io/n-discuss | irclog http://irclog.whitequark.org/nanoc
jugglinmike has quit [Ping timeout: 250 seconds]
<kAworu> ddfreyne: about colorize syntax filter I've come to implement my own using "github-like backticks" ``` like here: https://github.com/kAworu/kaworu.ch/blob/master/content/blog/articles/dovecot-antispam-with-rspamd.html#L59
<kAworu> ddfreyne: The thing is that using HTML syntax like <code class="language-ruby"> and then parsing to HTML (as I understand does the default filter) has some issues
<kAworu> for example, if you have a line like "#include <stdio.h>" then the content will not be successfully parsed by Nogokiri (because '<' and '>' should be escaped as &lt; and &gt;
<guardian> ddfreyne: "The colorize_syntax filter already has some logic for extracting the language" oh really?
<guardian> ddfreyne: I have to add e.g. "#!c" or "#!ruby" on top of my code fragments otherwise it doesn't colorize anything
<guardian> ddfreyne: even the doc for the colorize syntax filter says "The code element should have an indication of the language the code is in"
<kAworu> guardian: I think that's the logic he's referring to ;)
<guardian> ddfreyne: so my question is "is there a way to avoid having to specify the language and have it automatically detected?"
kAworu has quit [Remote host closed the connection]
<guardian> ddfreyne: btw I'm not sure feeding Nokogiri with a markdown document containing HTML blocks/parts is a supported scenario
VitamineD has quit [Quit: mi dormas]
VitamineD has joined #nanoc
VitamineD has quit [Quit: mi dormas]
cDlm has joined #nanoc
dbr_vince has quit [Ping timeout: 276 seconds]
kAworu has joined #nanoc
dbr_vince has joined #nanoc
jugglinmike has joined #nanoc
cDlm has quit [Ping timeout: 245 seconds]
<ddfreyne> kAworu: I believe kramdown supports GitHub-style backticks, and it (I believe) sets the correct language-something class.
<ddfreyne> guardian: if you wanted to automatically detect the language, you could have a filter that grabs the <pre>s, feeds them to some library that detects the language, and adds it.
<ddfreyne> guardian: I believe GitHub has a library like that, but I don't remember the name.
<ddfreyne> guardian: Of course, that is not quite going to be the fastest approach...
<ddfreyne> kAworu: #include <foo> in HTML is invalid anyway... if you have that in Markdown in an indented code block, it will escape the <> for you.
<guardian> it's github-linguist
<ddfreyne> kAworu: As for that Stoneship site one... I used to do the syntax coloring by hand, but that's quite a while ago. The nanoc web site uses the #!language construct, which works well
<guardian> ddfreyne: about that PR for the kramdown filter, forget it. I think I'll switch to a regex to ignore some warnings...
<ddfreyne> guardian: The kramdown warnings are definitely something I'd like to address, but it might be better to address those within kramdown itself.
<ddfreyne> More up-to-date example of how I write stuff that has code snippets in it: https://raw.githubusercontent.com/nanoc/nanoc.ws/nanoc-4-docs/content/docs/guides/creating-multilingual-sites.md
<guardian> ddfreyne: I'm not sure kramdown's author cares
<ddfreyne> There’s no way to configure the warnings in any case.
<ddfreyne> Speaking of caring or not caring, I might push out nanoc 4 beta 4.
<ddfreyne> (Because I care!)
<ddfreyne> guardian: FWIW, the warnings annoy me too.
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to master: http://git.io/vIXve
<nanoc-gh> nanoc/master 376fdcb Denis Defreyne: Set release date of 4.0.0b4 to today
<ddfreyne> Also stuff like this:
<ddfreyne> kramdown warning: No link definition for link ID 'gregory pakosz' found on line 151
<ddfreyne> Which is also not configurable as far as I can tell.
<nanoc-gh> [nanoc] ddfreyne tagged 4.0.0b4 at 726fed7: http://git.io/vIXvx
<ddfreyne> It's been one month since nanoc 4 alpha 1. Not bad!
ddfreyne changed the topic of #nanoc to: 3.8.0 (May 4th) - 4.0.0b4 (June 10th) | web http://nanoc.ws/ | repo http://bit.ly/XE6e3G | issues http://bit.ly/VfXaSV | forum http://ho.io/n-discuss | irclog http://irclog.whitequark.org/nanoc
<ddfreyne> Upgrade!
<nanoc-gh> [nanoc] ddfreyne created improve-summary-and-description (+1 new commit): http://git.io/vIXLk
<nanoc-gh> nanoc/improve-summary-and-description dc0e643 Denis Defreyne: Improve summary and description
<travis-ci> nanoc/nanoc/master 376fdcb Denis Defreyne: The build passed.
<nanoc-gh> [nanoc] ddfreyne created prevent-double-layout-wrapping (+1 new commit): http://git.io/vIXsP
<nanoc-gh> nanoc/prevent-double-layout-wrapping 6789e3d Denis Defreyne: Prevent double-wrapping layout in rendering helper
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to master: http://git.io/vIXZC
<nanoc-gh> nanoc/master 123943d Denis Defreyne: Merge pull request #631 from nanoc/prevent-double-layout-wrapping...
<travis-ci> nanoc/nanoc/master 123943d Denis Defreyne: The build passed.
<nanoc-gh> [nanoc] ddfreyne force-pushed snapshot-def from 7e64907 to 0fd629b: http://git.io/vI0RI
<nanoc-gh> nanoc/snapshot-def 0fd629b Denis Defreyne: Create SnapshotDef
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to snapshot-def: http://git.io/vIX8C
<nanoc-gh> nanoc/snapshot-def 950b859 Denis Defreyne: Rename #snapshots to #snapshot_defs
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to snapshot-def: http://git.io/vIX4Y
<nanoc-gh> nanoc/snapshot-def 4f64736 Denis Defreyne: Rename content_snapshots to snapshot_contents
<nanoc-gh> [nanoc] ddfreyne created fix-comma-style (+1 new commit): http://git.io/vIX0M
<nanoc-gh> nanoc/fix-comma-style 61e86b8 Denis Defreyne: Enforce trailing comma
<nanoc-gh> [nanoc] ddfreyne force-pushed fix-comma-style from 61e86b8 to a9765f0: http://git.io/vIXEl
<nanoc-gh> nanoc/fix-comma-style a9765f0 Denis Defreyne: Enforce trailing comma
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to master: http://git.io/vIXat
<nanoc-gh> nanoc/master aa69937 Denis Defreyne: Merge pull request #629 from nanoc/snapshot-def...
<nanoc-gh> [nanoc] ddfreyne force-pushed fix-comma-style from a9765f0 to d824d63: http://git.io/vIXEl
<nanoc-gh> nanoc/fix-comma-style d824d63 Denis Defreyne: Enforce trailing comma
<nanoc-gh> [nanoc] ddfreyne force-pushed fix-comma-style from d824d63 to 70d4656: http://git.io/vIXEl
<nanoc-gh> nanoc/fix-comma-style 70d4656 Denis Defreyne: Enforce trailing comma
<nanoc-gh> [nanoc] ddfreyne deleted fix-comma-style at 70d4656: http://git.io/vIXVI
<travis-ci> nanoc/nanoc/master aa69937 Denis Defreyne: The build passed.
<travis-ci> nanoc/nanoc/master 42509a1 Denis Defreyne: The build passed.
xar- has quit [Quit: ZNC - http://znc.in]
VitamineD has joined #nanoc
pkunc1 has quit [Quit: Leaving.]
jugglinmike has quit [Ping timeout: 246 seconds]