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
Merge branch 'pchaigno-rmarkdown' into release-1.3.0
* pchaigno-rmarkdown:
Case-insensitive on just markdown
Perform case-insensitive test for file extensions
Escape the filepath to rest2html so paths containing spaces will be passed to CommandImplementation#execute correctly.
Update README.md
Tables are cooler
Organize the README's whitelisted elements a bit better
Render RMarkdown (.rmd) as Markdown
Force encoding of posix_spawn output
Force encoding of posix_spawn output
Fix a spelling mistake
rst2html: Extend the field_name_limit to 50
Copy file name to clipboardExpand all lines: README.md
+23-19Lines changed: 23 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ GitHub Markup
2
2
=============
3
3
4
4
We use this library on GitHub when rendering your README or any other
5
-
rich text file. The generated HTML is then run through filters in the [html-pipeline](https://github.com/jch/html-pipeline) to perform things like [santization](#html-sanitization) and [syntax highlighting](https://github.com/jch/html-pipeline/blob/master/lib/html/pipeline/syntax_highlight_filter.rb).
5
+
rich text file. The generated HTML is then run through filters in the [html-pipeline](https://github.com/jch/html-pipeline) to perform things like [sanitization](#html-sanitization) and [syntax highlighting](https://github.com/jch/html-pipeline/blob/master/lib/html/pipeline/syntax_highlight_filter.rb).
6
6
7
7
Markups
8
8
-------
@@ -37,32 +37,36 @@ Or, more realistically:
37
37
require 'github/markup'
38
38
GitHub::Markup.render(file, File.read(file))
39
39
40
+
Contributing
41
+
------------
42
+
43
+
See [Contributing](CONTRIBUTING.md)
44
+
40
45
HTML sanitization
41
46
-----------------
42
47
43
48
HTML rendered by the various markup language processors gets passed through an [HTML sanitization filter](https://github.com/jch/html-pipeline/blob/master/lib/html/pipeline/sanitization_filter.rb) for security reasons. HTML elements not in the whitelist are removed. HTML attributes not in the whitelist are removed from the preserved elements.
44
49
45
50
The following HTML elements, organized by category, are whitelisted:
46
51
47
-
* Headings: h1, h2, h3, h4, h5, h6, h7, h8
48
-
* Prose: p, div, blockquote
49
-
* Preformatted: pre
50
-
* Inline: b, i, strong, em, tt, code, ins, del, sup, sub, kbd, samp, q, var
0 commit comments