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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82208eb59ae04f8483de860c59b496e0bfe47488c6693ee80b2517bb69c37619
4
- data.tar.gz: '0685aaaf67a70ee5f713015ffc1312b8554598e7153d8427d957b8785007b312'
3
+ metadata.gz: 2cae5ea3d85caa0a5a39f50c6714b20f5d17beb933e67ad7121f0b87a45b05b4
4
+ data.tar.gz: 88d7ada937d4d4cbeb5ced51f057f0d0c33152ab9c5d9148ab9abb1b2c9309a9
5
5
  SHA512:
6
- metadata.gz: 89f9d947f2bff284a260b10da2207d0305f85ee8df746078dd8aa57c23c70314580b04472235818e9fb9acd24e745d0f0995e03a47a3e1dd12282eb2be3765fd
7
- data.tar.gz: 890b635054dbe37744334035bf495205bf97a4aebe4acdea70ac0e4c9572d5103ff5b98994cfae633f5d62ae5c52351293aea311707edcdc1b3b568af9e74026
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 `redcarpet` gem to your project's `Gemfile`. For automatic syntax highlighting, add the `rouge` to your `Gemfile` as well.
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
- Rouge::Formatters::HTML.new.format(Rouge::Lexer.find(language).lex(source))
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContentFS
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
 
6
6
  def self.version
7
7
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Powell