Skip to content

Commit ae83701

Browse files
authored
Merge pull request #658 from github/fix-ambiguous-code-block-error
Fix Rouge ambiguous guess error
2 parents 963723a + f9b1313 commit ae83701

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

lib/github-pages/configuration.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ class Configuration
2222
"input" => "GFM",
2323
"hard_wrap" => false,
2424
"gfm_quirks" => "paragraph_end",
25+
"syntax_highlighter_opts" => {
26+
"default_lang" => "plaintext",
27+
},
2528
},
2629
"exclude" => ["CNAME"],
2730
}.freeze
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Ambiguous Code Block
3+
---
4+
5+
Testing an ambiguous code block. Rouge gets tripped up by this.
6+
7+
## **Header**
8+
9+
This is a paragraph.
10+
11+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
12+
13+
<html>
14+
15+
<head>
16+
17+
</head>
18+
19+
<body>
20+
21+
</body>
22+
23+
</html>
24+
25+
This is a paragraph.

0 commit comments

Comments
 (0)