mato 2.1.0 → 2.1.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: 523910ddb96bf17e851f64d839f16e7fc932839f8f570d5c0d59b9f175e02d40
4
- data.tar.gz: 9ee98b29b34a590f3f06ea6e793c660dd9ec43145775c2f5297814e868be0e65
3
+ metadata.gz: bf9376fe32fa4245c884ab54cfccc6cbc263198d86a401e8601b79d3dc76cfd2
4
+ data.tar.gz: 88785abe066ee18c23b5b07cc3cc8b35cbdf6e447008c9a27e0bdfc7c6738351
5
5
  SHA512:
6
- metadata.gz: 97104ea66961b83350fe173b5f045fefbfec345a9cc149f5acf8b771d95a9d3a3a05dca727dfb92a584bfd71336cfa7e24a6cd29e7aad8cf3b7e22592d62e35c
7
- data.tar.gz: 9b89e453e63d739a2b38787bbedadb0742d574607983be8f5b31bbfbeb14b0f7afcac14cea79909c148671f184e55536585302511f9f967a332e0a384b14f4c0
6
+ metadata.gz: d51e4046173e64152c07b133d7fe3d04af92e3dc4664c3346fdcd5f57da402005fd5b05a64bfb24bc158f52dc3536c7f1f3c56e210cf0e234dab114aaf2c95c1
7
+ data.tar.gz: 633e03865baf4e21eb5e026aedd40ce447aa63750de3a6b216f0d695fc4e11385914e98aac4affdad99e556290d4ad7885296f54ef7e159d401323011aa0394e
@@ -1,8 +1,14 @@
1
1
  # The revision history of Mato
2
2
 
3
+ ## v2.1.1 - 2018/02/22
4
+
5
+ https://github.com/bitjourney/mato/compare/v2.1.0...v2.1.1
6
+
7
+ * Fix language detection in fenced code blocks [#14](https://github.com/bitjourney/mato/pull/14)
8
+
3
9
  ## v2.1.0 - 2018/02/21
4
10
 
5
- https://github.com/bitjourney/mato/compare/v2.0.1...v2.10
11
+ https://github.com/bitjourney/mato/compare/v2.0.1...v2.1.0
6
12
 
7
13
  * Enable `:TABLE_PREFER_STYLE_ATTRIBUTE` added in CommonMarker v0.17.8 [#13](https://github.com/bitjourney/mato/pull/13)
8
14
 
@@ -51,7 +51,7 @@ module Mato
51
51
  def highlight(pre)
52
52
  code = pre.at('code')
53
53
  metadata = parse_label(code['class'])
54
- language = metadata[:language]
54
+ language = metadata[:language]&.sub(/^language-/, '')
55
55
  filename = metadata[:filename]
56
56
  source = code.inner_text
57
57
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mato
4
- VERSION = "2.1.0"
4
+ VERSION = "2.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mato
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - FUJI Goro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-21 00:00:00.000000000 Z
11
+ date: 2018-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commonmarker