marksmith 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd1c156bdd01e593e1ed5a364b646b028e736a7e0d67763110cce1e08ccb4d08
4
- data.tar.gz: 12cdfb76d754cd011892b76790784cc122f5500213ab5f18318e353fdd531013
3
+ metadata.gz: 0cd9065c9b2a4cf7fb640152c51f9592964d2bfd17aa171b6f8decb3580d98e2
4
+ data.tar.gz: a3821853114f3ec6bd488189bcbedf5b0057d806f1c05800fc5672759a304b77
5
5
  SHA512:
6
- metadata.gz: c5908c41dc5a0b241a3db237ad8c6bf08e8868cb57517ff621bafb47564fd328ab7cb24b225c638b252d24e0c44852ea285af5aa95709b0fc0ab9e12aaf4ffe1
7
- data.tar.gz: 5437ee09dccfd514e25d2fcd4874acb7cf126fe5ae26d4839ae6061daedcbdeabdb259a6dba550fdfa87b9d44d3a3f769046d17a50539a2d545390ac958ce57b
6
+ metadata.gz: 83dbae5278cc4a481d369a6ab92a224bb638becbac950b44430021b70a0fc06ec5f3214313b2587a60475bbbbe163bedf73048651cee3d27e20bce3bfe8bbc15
7
+ data.tar.gz: 7ecfde500396c1f0775fc7a4467f0031c36ab89dcab1a3a23f41d2a8680d0925861b17863b2eb862050b324e07997753fe2a58184335ccd8c8e7c2fba2bda433
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.2
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.2
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.2
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.2
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.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-15 00:00:00.000000000 Z
11
+ date: 2025-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport