Jesse Newland
be4c52202c
remove contents of script and style elements
...
Avoids rendering HTML-ized CSS and/or Javascript by removing the
contents of script and style elements as well as the elements
themselves.
/cc @technoweenie
Pull Request: master
2012-01-08 22:07:33 -05:00
Vicent Marti
af09f99c8a
Fix newline tests in code blocks
2011-12-07 13:02:54 +01:00
Vicent Marti
108876d9a1
Do not assume Markdown output is XHTML
...
Self-closing tags are bad for your health.
2011-12-07 12:34:59 +01:00
Joshua Peek
3cba98fee6
Merge branch 'master' into server-side-tex
2011-11-28 13:21:46 -06:00
Joshua Peek
cc96786ac0
Fix Wiki XSS vuln
2011-11-15 15:29:05 -06:00
Joshua Peek
7a4e57a49d
Fix Tex tests
2011-10-24 15:54:40 -05:00
rick
8c1f82d894
let Gollum::Markup handle code blocks instead of RedCarpet
2011-09-29 11:02:35 -06:00
risk
20e4ca6a56
normalize test output
2011-08-08 15:26:27 -07:00
risk
cd4704aed7
prefix name attributes too
2011-08-08 15:02:10 -07:00
Scott Chacon
aa258dbe6b
fix test breaking due to new footnote anchor
2011-07-19 12:55:43 -07:00
Scott Chacon
5a7659e1c3
fix tests breaking due to whitespace issues
2011-07-19 12:55:19 -07:00
Schuyler Duveen
c22050fca8
allow @id attributes but force a "wiki-" prefix
2011-05-04 11:50:38 -04:00
rick
e0494a6321
fix tests
2011-03-10 11:06:18 -08:00
rick
ecb44b50e1
use Albino::Multi
2011-03-03 16:28:13 -08:00
rick
732e8a9361
fix bug where relative images in previews did not render
2011-01-27 16:34:29 -08:00
rick
a9d4e117aa
fix markup formatting edge case
2011-01-17 10:17:14 -08:00
rick
feff07ae9c
Merge branch 'org-mode-file-links' of https://github.com/hugoduncan/gollum into hugoduncan-org-mode-file-links
2011-01-17 10:12:50 -08:00
rick
ca2aaa543a
Merge branch 'mediawiki_fixups' of https://github.com/qmx/gollum into qmx-mediawiki_fixups
2011-01-17 09:06:00 -08:00
rick
9a4e2e39a8
update albino to 1.2.3, handle bad code blocks gracefully
2011-01-12 15:00:58 -08:00
Douglas Campos
2dbb4e9fa7
fixed mediawiki link handling
2011-01-12 00:57:21 -02:00
Douglas Campos
e4103e6181
testing link labeling current behavior
2011-01-11 22:50:59 -02:00
rick
c5e4935e85
tweak code markup parser so that blocks without a language are just output in pre tags
2011-01-11 01:00:51 -08:00
rick
45765eb161
add proper shell escaping for Albino
2011-01-11 00:58:04 -08:00
Hugo Duncan
32d1f9eb2f
Add parsing of org-mode [[file:path.org][label]] links
2011-01-07 23:59:36 -05:00
rick
aeb90c6293
use expand_path so ruby doesnt load helper.rb twice
2010-12-09 13:58:51 -08:00
rick
2fe6b7b7f1
provide access to the parsed Nokogiri document fragment when rendering marked up content.
2010-12-02 14:47:20 -08:00
rick
39d16b8c43
Merge branch 'text_data_method' of https://github.com/hiroshi/gollum into hiroshi-text_data_method
2010-11-09 12:19:29 -08:00
Marko Anastasov
16ef859073
Ignore case when matching image paths.
...
Otherwise images with file extensions in caps don't get rendered.
2010-10-12 12:07:07 +02:00
Hiroshi Saito
dc7693dbd0
FIX: Sanitize.clean raise Encoding::CompatibilityError if a page contains non ASCII-7 characters
2010-10-08 23:39:18 +09:00
rick
4dbe3ea844
ensures rel="nofollow" is added to all anchors if a page is retrieved with a SHA
2010-09-30 17:19:37 -07:00
rick
05a7b4c06c
Allow users to pass anchors to page links.
...
http://github.com/github/gollum/issues/\#issue/21
2010-09-30 15:32:02 -07:00
Tom Preston-Werner
1e2932fd21
Merge remote branch 'henrikh/test-sections'
2010-09-29 13:09:08 -07:00
Tom Preston-Werner
db1ccc4525
DRY up test commit details.
2010-08-30 16:38:01 -07:00
Henrik Hansen
959f02b50e
Use correct capitalization of TeX
2010-08-29 14:26:14 +02:00
Henrik Hansen
8301428974
Add sections to clean up markup test code
2010-08-29 10:08:08 +02:00
rick
0500c7e10c
cache the ref => sha lookup
2010-08-24 12:39:26 -07:00
rick
dd30a7bdc2
fix markup on framed absolute image urls
2010-08-16 15:49:47 -07:00
rick
c69a5f80dd
prevent Gollum::Wiki instances from creating new pages that overwrite pages with the same name.
2010-08-16 07:56:46 -07:00
Tom Preston-Werner
38b8700651
Code hilighter needs to handle blanks lines.
2010-07-29 21:57:30 -04:00
Tom Preston-Werner
f23d093d6f
Strip code indents (two spaces or one tab) if present.
2010-07-29 21:45:17 -04:00
Tom Preston-Werner
d37d57596b
Support TeX-style math equations via MathJax.
2010-07-25 22:40:09 -07:00
rick
00227a118b
pass Grit::Commit to Gollum::Page instances from Gollum::Wiki#pages
2010-07-23 17:39:33 -07:00
rick
bd3721d4d3
fix markup tests for nokogiri 1.4.2
2010-07-23 16:36:57 -07:00
rick
88934902fd
fix markup test errors
2010-07-22 20:20:12 -07:00
Tom Preston-Werner
9e917e235a
Support external links.
2010-07-20 22:44:39 -05:00
Tom Preston-Werner
8221bd6321
Fix file link with external path.
2010-07-20 22:26:13 -05:00
Tom Preston-Werner
8595ca5645
Fix tests and handle touching tags.
2010-07-20 22:22:22 -05:00
rick
5135de1c3f
when linking images, assume '.' is the root path
2010-07-14 13:42:21 -07:00
rick
ecbb902e62
Gollum::Markup uses Wiki#base_path when linking images/files
2010-07-14 13:32:32 -07:00
rick
7c380b15f5
use regex since the order of html attrs in formatted output is random
2010-07-12 17:42:24 -07:00