marksmith 0.2.0 → 0.2.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: bd1c156bdd01e593e1ed5a364b646b028e736a7e0d67763110cce1e08ccb4d08
4
- data.tar.gz: 12cdfb76d754cd011892b76790784cc122f5500213ab5f18318e353fdd531013
3
+ metadata.gz: 56e19c3a798fe08b0a94496122a474c12f86290e1bb8a5b4fff861d4aa6364aa
4
+ data.tar.gz: f93776bd5fd3d8a18ce3d7d037902488afd38708cd3decc85f1d3524fde77536
5
5
  SHA512:
6
- metadata.gz: c5908c41dc5a0b241a3db237ad8c6bf08e8868cb57517ff621bafb47564fd328ab7cb24b225c638b252d24e0c44852ea285af5aa95709b0fc0ab9e12aaf4ffe1
7
- data.tar.gz: 5437ee09dccfd514e25d2fcd4874acb7cf126fe5ae26d4839ae6061daedcbdeabdb259a6dba550fdfa87b9d44d3a3f769046d17a50539a2d545390ac958ce57b
6
+ metadata.gz: dc4374a4aec89463df75d437a8c5a78d417c6551bfbff1136a060220c98847e0acdff03ede9e2d93e1ca8c2296ee815be0518203fe4cbf6a710f373e28ec7f64
7
+ data.tar.gz: 822a0b2071008c2a898330283ad0a3518ca4f7493e6a2465a08863c5b741263ca4d183f31e28a226ead98b2d4f3c05e5e5d2815d825274a45410abafafea964b
data/README.md CHANGED
@@ -28,7 +28,7 @@ Temporary live demo here, under the description field: [https://main.avodemo.com
28
28
  Have Bundler add it by running this command:
29
29
 
30
30
  ```bash
31
- bundle add marksmith
31
+ bundle add marksmith commonmarker
32
32
  ```
33
33
 
34
34
  Or manually install it.
@@ -38,6 +38,8 @@ Add this line to your application's Gemfile:
38
38
  ```ruby
39
39
  # Gemfile
40
40
  gem "marksmith"
41
+ # Add a markdown parser
42
+ gem "commonmarker"
41
43
  ```
42
44
 
43
45
  #### 2. Install the NPM package to import the StimulusJS controller.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Marksmith 0.2.0
2
+ Marksmith 0.2.1
3
3
  */
4
4
  var ListContinuationController = (function () {
5
5
  'use strict';
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Marksmith 0.2.0
2
+ Marksmith 0.2.1
3
3
  */
4
4
  var ListContinuationController = (function (stimulus) {
5
5
  'use strict';
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Marksmith 0.2.0
2
+ Marksmith 0.2.1
3
3
  */
4
4
  var MarksmithController = (function () {
5
5
  'use strict';
@@ -2949,7 +2949,7 @@ var MarksmithController = (function () {
2949
2949
  }
2950
2950
 
2951
2951
  #pathFromBlob(blob) {
2952
- return `/rails/active_storage/blobs/redirect/${blob.signed_id}/${blob.filename}`
2952
+ return `/rails/active_storage/blobs/redirect/${blob.signed_id}/${encodeURIComponent(blob.filename)}`
2953
2953
  }
2954
2954
 
2955
2955
  #markdownLinkFromUrl(filename, url, contentType) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Marksmith 0.2.0
2
+ Marksmith 0.2.1
3
3
  */
4
4
  var MarksmithController = (function (stimulus) {
5
5
  'use strict';
@@ -2459,7 +2459,7 @@ var MarksmithController = (function (stimulus) {
2459
2459
  }
2460
2460
 
2461
2461
  #pathFromBlob(blob) {
2462
- return `/rails/active_storage/blobs/redirect/${blob.signed_id}/${blob.filename}`
2462
+ return `/rails/active_storage/blobs/redirect/${blob.signed_id}/${encodeURIComponent(blob.filename)}`
2463
2463
  }
2464
2464
 
2465
2465
  #markdownLinkFromUrl(filename, url, contentType) {
@@ -139,7 +139,7 @@ export default class extends Controller {
139
139
  }
140
140
 
141
141
  #pathFromBlob(blob) {
142
- return `/rails/active_storage/blobs/redirect/${blob.signed_id}/${blob.filename}`
142
+ return `/rails/active_storage/blobs/redirect/${blob.signed_id}/${encodeURIComponent(blob.filename)}`
143
143
  }
144
144
 
145
145
  #markdownLinkFromUrl(filename, url, contentType) {
@@ -1,3 +1,3 @@
1
1
  module Marksmith
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marksmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin