alpha
Login
or
Join now
utensil.tngl.sh
/
tech
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Utensil's technical posts in Chinese (mostly 2005-2020)
utensil.tngl.sh/tech/
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
tech
/
lib
/
at
middleman
2 files
utensil
Stop highlight.js from auto-detecting every code block
2mo ago
c198d66d
export_diandian.rb
Stop highlight.js from auto-detecting every code block commonmarker emits the fence language as <pre lang="X">, but highlight.js reads the language from a class on <code> and auto-detects any block without one — so prose/text blocks got highlighted as random guessed languages. Bridge the fence language onto <code class> so highlighting honors it (haml/ruby/js etc.), and mark text/unlabeled blocks nohighlight so they render plain.
2 months ago
mytemplate.rb
Stop highlight.js from auto-detecting every code block commonmarker emits the fence language as <pre lang="X">, but highlight.js reads the language from a class on <code> and auto-detects any block without one — so prose/text blocks got highlighted as random guessed languages. Bridge the fence language onto <code class> so highlighting honors it (haml/ruby/js etc.), and mark text/unlabeled blocks nohighlight so they render plain.
2 months ago