You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2017. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
Custom plugins for the Jekyll static site generator.
2
2
3
+
## filehash.rb
4
+
5
+
filehash.rb generates a SHA1 hex digest for a given file.
6
+
7
+
It has no dependencies.
8
+
3
9
## h1kramdown.rb
4
10
5
11
h1kramdown.rb patches `Kramdown::Converter::Html.convert_header` so that it inserts an empty `a` element as the first child of h[1..6] elements, with href pointing to the id of the h[1..6] element. It can be styled with the selector `h[1..6] > a:first-child:empty`.
@@ -14,6 +20,21 @@ handleize.rb is a liquid filter that forms a valid handle/slug from an input str
14
20
15
21
It has no dependencies.
16
22
23
+
## linguist.rb
24
+
25
+
linguist.rb contains the tag `linguist_colors` that outputs css rules corresponding to languages that [linguist](https://github.com/github/linguist) (used by GitHub) detects.
26
+
27
+
It depends on linguist: `$ [sudo] gem install github-linguist`.
28
+
29
+
It accepts a property to assign the colour to and a css selector that replaces the `{language}` token with a slug derived from the language name.
It also provides filters to access the following [`Numeric` module](http://ruby-doc.org/core-1.9.3/Numeric.html) methods: [abs](http://ruby-doc.org/core-1.9.3/Numeric.html#method-i-abs)[abs2](http://ruby-doc.org/core-1.9.3/Numeric.html#method-i-abs2)[divmod](http://ruby-doc.org/core-1.9.3/Numeric.html#method-i-divmod)[remainder](http://ruby-doc.org/core-1.9.3/Numeric.html#method-i-remainder).
35
+
36
+
It has no dependencies.
37
+
17
38
## mathml.rb
18
39
19
40
mathml.rb converts TeX into MathML. It provides a liquid tag `math` (and closing tag `endmath`), TeX within the tag will be converted into MathML. If kramdown is installed it will also replace `Kramdown::Converter::Html.convert_math` so that MathML can be generated using kramdown builtins. To clarify you can always use `{% math %}...{% endmath %}` but when using the kramdown parser you can also use `$$...$$`.
0 commit comments