metalsmith-metallic
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -64,8 +64,8 @@ | ||
if (lang==null) { | ||
replacements.push(hljs.highlightAuto(code).value); | ||
replacements.push("<code>"+hljs.highlightAuto(code).value+"</code>"); | ||
} else { | ||
try { | ||
replacements.push(hljs.highlight(lang, code).value); | ||
replacements.push("<code>"+hljs.highlight(lang, code).value+"</code>"); | ||
} catch(err) { | ||
replacements.push(hljs.highlightAuto(code).value); | ||
replacements.push("<code>"+hljs.highlightAuto(code).value+"</code>"); | ||
} | ||
@@ -72,0 +72,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"repository": "git://github.com/weswigham/metalsmith-metallic.git", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"license": "MIT", | ||
@@ -15,5 +15,4 @@ "main": "lib/index.js", | ||
"mocha": "1.x", | ||
"metalsmith": "0.x", | ||
"swig": "~1.3.2" | ||
"metalsmith": "0.x" | ||
} | ||
} |
Non code | ||
<span class="hljs-built_in">local</span> <span class="hljs-built_in">var</span> <span class="hljs-subst">=</span> <span class="hljs-string">"untyped code"</span> | ||
<code><span class="hljs-built_in">local</span> <span class="hljs-built_in">var</span> <span class="hljs-subst">=</span> <span class="hljs-string">"untyped code"</span></code> | ||
<span class="hljs-keyword">var</span> t = <span class="hljs-string">'typed code'</span> | ||
<code><span class="hljs-keyword">var</span> t = <span class="hljs-string">'typed code'</span></code> | ||
More non code |
Non code | ||
<span class="hljs-built_in">local</span> <span class="hljs-built_in">var</span> <span class="hljs-subst">=</span> <span class="hljs-string">"untyped code"</span> | ||
<code><span class="hljs-built_in">local</span> <span class="hljs-built_in">var</span> <span class="hljs-subst">=</span> <span class="hljs-string">"untyped code"</span></code> | ||
<span class="hljs-keyword">var</span> t = <span class="hljs-string">'typed code'</span> | ||
<code><span class="hljs-keyword">var</span> t = <span class="hljs-string">'typed code'</span></code> | ||
More non code |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5336
2