contentfs 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/contentfs/renderers/markdown/code.rb +5 -1
- data/lib/contentfs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cae5ea3d85caa0a5a39f50c6714b20f5d17beb933e67ad7121f0b87a45b05b4
|
4
|
+
data.tar.gz: 88d7ada937d4d4cbeb5ced51f057f0d0c33152ab9c5d9148ab9abb1b2c9309a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7e36df02d4529994fd6b277cd22cd0476481bdb06738fac615be5f8ed1565a0625e55f12b836fdff6a97473a7acba4ad875fd3b5cef30c7250a5f609fb6d5f7
|
7
|
+
data.tar.gz: 60e419c7bfd92f2e710e42f004cb20f7af1b63720a8a86151e4a36067467afe136aee44fd7d585b825a72626ceaf839078e160518361fc81f5e9d9925d770ff9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## [v0.5.1](https://github.com/metabahn/contentfs/releases/tag/v0.5.1)
|
2
|
+
|
3
|
+
*released on 2021-04-02*
|
4
|
+
|
5
|
+
* `fix` [#11](https://github.com/metabahn/contentfs/pull/11) Handle code blocks with no available lexer ([bryanp](https://github.com/bryanp))
|
6
|
+
|
1
7
|
## [v0.5.0](https://github.com/metabahn/contentfs/releases/tag/v0.5.0)
|
2
8
|
|
3
9
|
*released on 2021-04-01*
|
data/README.md
CHANGED
@@ -40,7 +40,7 @@ The `content` name is special in that it defines content for the containing fold
|
|
40
40
|
|
41
41
|
### Formats
|
42
42
|
|
43
|
-
Markdown is supported by default. Simply add the `
|
43
|
+
Markdown is supported by default. Simply add the `commonmarker` gem to your project's `Gemfile`. For automatic syntax highlighting, add the `rouge` to your `Gemfile` as well.
|
44
44
|
|
45
45
|
Unknown formats default to plain text.
|
46
46
|
|
@@ -30,7 +30,11 @@ module ContentFS
|
|
30
30
|
end
|
31
31
|
|
32
32
|
private def syntax_highlight(source, language)
|
33
|
-
|
33
|
+
if (lexer = Rouge::Lexer.find(language))
|
34
|
+
Rouge::Formatters::HTML.new.format(lexer.lex(source))
|
35
|
+
else
|
36
|
+
source
|
37
|
+
end
|
34
38
|
end
|
35
39
|
end
|
36
40
|
end
|
data/lib/contentfs/version.rb
CHANGED