html_to_prosemirror 0.3.0 → 0.3.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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +6 -1
- data/RELEASE.md +2 -2
- data/html_to_prosemirror.gemspec +6 -5
- data/lib/html_to_prosemirror/nodes/blockquote.rb +16 -0
- data/lib/html_to_prosemirror/version.rb +1 -1
- data/lib/html_to_prosemirror.rb +2 -0
- metadata +15 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d12b016223092813c941045685d6facf42fe30ae9127e993801da3c1b1bc3b01
|
|
4
|
+
data.tar.gz: eaeaef1bb94b6d1fbabff5aaf9adff76b216c991f9792058f335835fe019aa94
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9a3cb1163b0945a7d0ad45237373e6be0765857e2284d1963e2984cb5ac3180810b3fa7ee8c2e74fb6fca80e2c56282d4f204632e0c66fa3ab86693a54b75bb
|
|
7
|
+
data.tar.gz: c485909e7fcb395632209a2b0aaaa1fcb767afed767919221c88bb984861d8b6e4b58c282fc667fcbe04c511e0d0fb3fac0b519f01be5e94e0e8c521540b9e22
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
html_to_prosemirror (0.3.
|
|
4
|
+
html_to_prosemirror (0.3.1)
|
|
5
5
|
nokogiri
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -60,7 +60,7 @@ DEPENDENCIES
|
|
|
60
60
|
|
|
61
61
|
CHECKSUMS
|
|
62
62
|
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
63
|
-
html_to_prosemirror (0.3.
|
|
63
|
+
html_to_prosemirror (0.3.1)
|
|
64
64
|
nokogiri (1.19.1-aarch64-linux-gnu) sha256=cfdb0eafd9a554a88f12ebcc688d2b9005f9fce42b00b970e3dc199587b27f32
|
|
65
65
|
nokogiri (1.19.1-aarch64-linux-musl) sha256=1e2150ab43c3b373aba76cd1190af7b9e92103564063e48c474f7600923620b5
|
|
66
66
|
nokogiri (1.19.1-arm-linux-gnu) sha256=0a39ed59abe3bf279fab9dd4c6db6fe8af01af0608f6e1f08b8ffa4e5d407fa3
|
data/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# HtmlToProsemirror
|
|
2
2
|
|
|
3
|
+
> [!WARNING]
|
|
4
|
+
> **This gem is deprecated.** Use [`prosemirror`](https://github.com/etaminstudio/prosemirror) instead, from the same maintainers: `Prosemirror.from_html(html).to_h`. Its JSON follows the schema, as Tiptap's `generateJSON` does, it reads more elements and inline styles, and it also imports Markdown and renders HTML with the same schema. See the [migration guide](https://github.com/etaminstudio/prosemirror/blob/main/MIGRATING.md).
|
|
5
|
+
>
|
|
6
|
+
> This gem won't get new features.
|
|
7
|
+
|
|
3
8
|
Takes HTML and outputs ProseMirror compatible JSON.
|
|
4
9
|
|
|
5
10
|
A logical port to Ruby from https://github.com/scrumpy/html-to-prosemirror
|
|
@@ -36,7 +41,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
36
41
|
|
|
37
42
|
## Contributing
|
|
38
43
|
|
|
39
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
44
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/etaminstudio/html_to_prosemirror. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
40
45
|
|
|
41
46
|
## License
|
|
42
47
|
|
data/RELEASE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Releasing a new version of html_to_prosemirror
|
|
2
2
|
|
|
3
3
|
1. Create a list of all the changes since the prior release
|
|
4
|
-
1. Compare the latest release to master using https://github.com/
|
|
4
|
+
1. Compare the latest release to master using https://github.com/etaminstudio/html_to_prosemirror/compare/`${latest}`...master
|
|
5
5
|
1. Open the linked pull requests from all the `Merge pull request #...` commits
|
|
6
6
|
1. For all non-documentation PRs, copy title (including pull request number) into markdown list items
|
|
7
7
|
1. (optional, but nice) Sort into logical buckets, like "support for additional endpoints", "enhancements", "bugfixes"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
1. Update the constant in `lib/html_to_prosemirror/version.rb`
|
|
12
12
|
1. Commit and push directly to master
|
|
13
13
|
1. Run the `script/release` script to cut a release
|
|
14
|
-
1. Draft a new release at https://github.com/
|
|
14
|
+
1. Draft a new release at https://github.com/etaminstudio/html_to_prosemirror.rb/releases/new containing the curated changelog
|
|
15
15
|
|
|
16
16
|
## Prerequisites
|
|
17
17
|
|
data/html_to_prosemirror.gemspec
CHANGED
|
@@ -6,13 +6,14 @@ require "html_to_prosemirror/version"
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "html_to_prosemirror"
|
|
8
8
|
spec.version = HtmlToProsemirror::VERSION
|
|
9
|
-
spec.authors = ["Brian Kimball"]
|
|
10
|
-
spec.email = ["bvkimball@gmail.com"]
|
|
9
|
+
spec.authors = ["Hans Lemuet", "Brian Kimball"]
|
|
10
|
+
spec.email = ["hans@etamin.studio", "bvkimball@gmail.com"]
|
|
11
11
|
|
|
12
|
-
spec.summary = %q{Takes HTML and outputs ProseMirror compatible JSON.}
|
|
13
|
-
spec.description = %q{Takes HTML and outputs ProseMirror compatible JSON.}
|
|
14
|
-
spec.homepage = "https://github.com/
|
|
12
|
+
spec.summary = %q{Deprecated: use the prosemirror gem. Takes HTML and outputs ProseMirror compatible JSON.}
|
|
13
|
+
spec.description = %q{Deprecated in favor of the prosemirror gem. Takes HTML and outputs ProseMirror compatible JSON.}
|
|
14
|
+
spec.homepage = "https://github.com/etaminstudio/html_to_prosemirror"
|
|
15
15
|
spec.license = "MIT"
|
|
16
|
+
spec.post_install_message = "html_to_prosemirror is deprecated: use the prosemirror gem instead. Migration guide: https://github.com/etaminstudio/prosemirror/blob/main/MIGRATING.md"
|
|
16
17
|
|
|
17
18
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
|
18
19
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
data/lib/html_to_prosemirror.rb
CHANGED
|
@@ -5,6 +5,7 @@ require "html_to_prosemirror/marks/code"
|
|
|
5
5
|
require "html_to_prosemirror/marks/italic"
|
|
6
6
|
require "html_to_prosemirror/marks/link"
|
|
7
7
|
require "html_to_prosemirror/nodes/node"
|
|
8
|
+
require "html_to_prosemirror/nodes/blockquote"
|
|
8
9
|
require "html_to_prosemirror/nodes/bullet_list"
|
|
9
10
|
require "html_to_prosemirror/nodes/code_block_wrapper"
|
|
10
11
|
require "html_to_prosemirror/nodes/code_block"
|
|
@@ -31,6 +32,7 @@ module HtmlToProsemirror
|
|
|
31
32
|
HtmlToProsemirror::Marks::Link
|
|
32
33
|
]
|
|
33
34
|
@nodes = [
|
|
35
|
+
HtmlToProsemirror::Nodes::Blockquote,
|
|
34
36
|
HtmlToProsemirror::Nodes::BulletList,
|
|
35
37
|
HtmlToProsemirror::Nodes::CodeBlockWrapper,
|
|
36
38
|
HtmlToProsemirror::Nodes::CodeBlock,
|
metadata
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: html_to_prosemirror
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
+
- Hans Lemuet
|
|
7
8
|
- Brian Kimball
|
|
9
|
+
autorequire:
|
|
8
10
|
bindir: exe
|
|
9
11
|
cert_chain: []
|
|
10
|
-
date:
|
|
12
|
+
date: 2026-10-24 00:00:00.000000000 Z
|
|
11
13
|
dependencies:
|
|
12
14
|
- !ruby/object:Gem::Dependency
|
|
13
15
|
name: bundler
|
|
@@ -79,8 +81,10 @@ dependencies:
|
|
|
79
81
|
- - ">="
|
|
80
82
|
- !ruby/object:Gem::Version
|
|
81
83
|
version: '0'
|
|
82
|
-
description: Takes HTML and outputs ProseMirror
|
|
84
|
+
description: Deprecated in favor of the prosemirror gem. Takes HTML and outputs ProseMirror
|
|
85
|
+
compatible JSON.
|
|
83
86
|
email:
|
|
87
|
+
- hans@etamin.studio
|
|
84
88
|
- bvkimball@gmail.com
|
|
85
89
|
executables: []
|
|
86
90
|
extensions: []
|
|
@@ -106,6 +110,7 @@ files:
|
|
|
106
110
|
- lib/html_to_prosemirror/marks/italic.rb
|
|
107
111
|
- lib/html_to_prosemirror/marks/link.rb
|
|
108
112
|
- lib/html_to_prosemirror/marks/mark.rb
|
|
113
|
+
- lib/html_to_prosemirror/nodes/blockquote.rb
|
|
109
114
|
- lib/html_to_prosemirror/nodes/bullet_list.rb
|
|
110
115
|
- lib/html_to_prosemirror/nodes/code_block.rb
|
|
111
116
|
- lib/html_to_prosemirror/nodes/code_block_wrapper.rb
|
|
@@ -121,10 +126,12 @@ files:
|
|
|
121
126
|
- lib/html_to_prosemirror/version.rb
|
|
122
127
|
- scripts/package
|
|
123
128
|
- scripts/release
|
|
124
|
-
homepage: https://github.com/
|
|
129
|
+
homepage: https://github.com/etaminstudio/html_to_prosemirror
|
|
125
130
|
licenses:
|
|
126
131
|
- MIT
|
|
127
132
|
metadata: {}
|
|
133
|
+
post_install_message: 'html_to_prosemirror is deprecated: use the prosemirror gem
|
|
134
|
+
instead. Migration guide: https://github.com/etaminstudio/prosemirror/blob/main/MIGRATING.md'
|
|
128
135
|
rdoc_options: []
|
|
129
136
|
require_paths:
|
|
130
137
|
- lib
|
|
@@ -139,7 +146,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
139
146
|
- !ruby/object:Gem::Version
|
|
140
147
|
version: '0'
|
|
141
148
|
requirements: []
|
|
142
|
-
rubygems_version:
|
|
149
|
+
rubygems_version: 3.5.22
|
|
150
|
+
signing_key:
|
|
143
151
|
specification_version: 4
|
|
144
|
-
summary: Takes HTML and outputs ProseMirror
|
|
152
|
+
summary: 'Deprecated: use the prosemirror gem. Takes HTML and outputs ProseMirror
|
|
153
|
+
compatible JSON.'
|
|
145
154
|
test_files: []
|