Skip to content

Commit

Permalink
Fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
White-Oak committed Jan 20, 2016
1 parent 69575f1 commit 04d2ed4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions rules.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ regexp,replacement
\*\*(?P<bold>[^\*]+?)\*\*,[b]$bold[/b]
\*(?P<italic>.+?)\*,[i]$italic[/i]
(?m)^# (?P<head>.*?)$\r?\n,
(?m)^#+ (?P<head>.*?)$,[b][center]$head[/b][/center]
(?m)^```(?P<code_lang>.*?)$(?P<ml_code>(?s).*?)```,[code $code_lang]$ml_code[/code]\n
(?m)^#+ (?P<head>.*?)$,[b][center]$head[/center][/b]
(?m)^```(?P<code_lang>.+?)$\s*(?P<ml_code>(?s).*?)^```$,[code $code_lang]$ml_code[/code]\n
(?m)^```$\s*(?P<ml_code>(?s).*?)^```$,[code]$ml_code[/code]\n
(?m)^#### (?P<spoiler_name>.*?)$(?P<spoiler_content>(?s).+?)^\r?\n,[spoiler $spoiler_name]$spoiler_content[/spoiler]\n
`(?P<code>.*?)`,[bg=#bfbfbf]$code[/bg]
2 changes: 1 addition & 1 deletion tests/01_header_with_parens.bb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[b][center](A Tiny) Bytecode Refresher[/b][/center]
[b][center](A Tiny) Bytecode Refresher[/center][/b]
6 changes: 4 additions & 2 deletions tests/02_code_different_languages.bb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[code java]
class Point {}
[code java]class Point {}
[/code]

[code]class Point {}
[/code]

test
3 changes: 3 additions & 0 deletions tests/02_code_different_languages.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
```java
class Point {}
```
```
class Point {}
```
test

0 comments on commit 04d2ed4

Please sign in to comment.