html-to-markdown 2.5.5 → 2.5.6
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/Cargo.toml +2 -2
- data/README.md +8 -1
- data/lib/html_to_markdown/version.rb +1 -1
- metadata +11 -13
- data/.rubocop.yml +0 -29
- data/Gemfile +0 -15
- data/Gemfile.lock +0 -80
- data/Rakefile +0 -23
- data/html-to-markdown-rb.gemspec +0 -37
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1829c785edaf223adaa67b69c7350264e7bc55de02e1e9b40451f4b61222ae42
|
|
4
|
+
data.tar.gz: 303ef1c08e294512de540e896d5b7d0f652a507ffb307544d847b1b1277adc24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4df160116b63a80814855deaa288bd6456b47745567844347a8b99bb1ba6c4251e9fdfd176d9c45c3ed2fe77434d6c3d39bcb725683abf03c9c1abecf071899
|
|
7
|
+
data.tar.gz: 4c3fb6133b606408d9907b51b49bf71ec6b8dee8f02fffe6ea89eaa2b0d95152e37fd5cafa2c19e2a42298a0eebbd10bb9fde4b3b67e824b6ff0729280490305
|
data/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "html-to-markdown-rb"
|
|
3
|
-
version = "2.5.
|
|
3
|
+
version = "2.5.6"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
authors = ["Na'aman Hirschfeld <nhirschfeld@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -21,7 +21,7 @@ crate-type = ["cdylib", "rlib"]
|
|
|
21
21
|
default = []
|
|
22
22
|
|
|
23
23
|
[dependencies]
|
|
24
|
-
html-to-markdown-rs = { version = "2.5.
|
|
24
|
+
html-to-markdown-rs = { version = "2.5.6", features = ["inline-images"] }
|
|
25
25
|
magnus = { git = "https://github.com/matsadler/magnus", rev = "f6db11769efb517427bf7f121f9c32e18b059b38", features = ["rb-sys"] }
|
|
26
26
|
|
|
27
27
|
[dev-dependencies]
|
data/README.md
CHANGED
|
@@ -17,6 +17,13 @@ Blazing-fast HTML → Markdown conversion for Ruby, powered by the same Rust eng
|
|
|
17
17
|
- 🧰 **Bundled CLI proxy**: Call the Rust CLI straight from Ruby or shell scripts.
|
|
18
18
|
- 🛠️ **First-class Rails support**: Works with `Gem.win_platform?` builds, supports Trusted Publishing, and compiles on install if no native gem matches.
|
|
19
19
|
|
|
20
|
+
## Documentation & Support
|
|
21
|
+
|
|
22
|
+
- [GitHub repository](https://github.com/Goldziher/html-to-markdown)
|
|
23
|
+
- [Issue tracker](https://github.com/Goldziher/html-to-markdown/issues)
|
|
24
|
+
- [Changelog](https://github.com/Goldziher/html-to-markdown/blob/main/CHANGELOG.md)
|
|
25
|
+
- [Live demo (WASM)](https://goldziher.github.io/html-to-markdown/)
|
|
26
|
+
|
|
20
27
|
## Installation
|
|
21
28
|
|
|
22
29
|
```bash
|
|
@@ -156,7 +163,7 @@ You can also call the CLI binary directly for scripting:
|
|
|
156
163
|
|
|
157
164
|
```ruby
|
|
158
165
|
HtmlToMarkdown::CLIProxy.call(['--version'])
|
|
159
|
-
# => "html-to-markdown 2.5.
|
|
166
|
+
# => "html-to-markdown 2.5.6"
|
|
160
167
|
```
|
|
161
168
|
|
|
162
169
|
Rebuild the CLI locally if you see `CLI binary not built` during tests:
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: html-to-markdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.5.
|
|
4
|
+
version: 2.5.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Na'aman Hirschfeld
|
|
@@ -47,11 +47,14 @@ description: "# html-to-markdown-rb\n\nBlazing-fast HTML → Markdown conversion
|
|
|
47
47
|
Markdown.\n- \U0001F9F0 **Bundled CLI proxy**: Call the Rust CLI straight from Ruby
|
|
48
48
|
or shell scripts.\n- \U0001F6E0️ **First-class Rails support**: Works with `Gem.win_platform?`
|
|
49
49
|
builds, supports Trusted Publishing, and compiles on install if no native gem matches.\n\n##
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
Documentation & Support\n\n- [GitHub repository](https://github.com/Goldziher/html-to-markdown)\n-
|
|
51
|
+
[Issue tracker](https://github.com/Goldziher/html-to-markdown/issues)\n- [Changelog](https://github.com/Goldziher/html-to-markdown/blob/main/CHANGELOG.md)\n-
|
|
52
|
+
[Live demo (WASM)](https://goldziher.github.io/html-to-markdown/)\n\n## Installation\n\n```bash\nbundle
|
|
53
|
+
add html-to-markdown\n# or\ngem install html-to-markdown\n```\n\nAdd the gem to
|
|
54
|
+
your project and Bundler will compile the native Rust extension on first install.\n\n###
|
|
55
|
+
Requirements\n\n- Ruby **3.2+** (Magnus relies on the fiber scheduler APIs added
|
|
56
|
+
in 3.2)\n- Rust toolchain **1.85+** with Cargo available on your `$PATH`\n- Ruby
|
|
57
|
+
development headers (`ruby-dev`, `ruby-devel`, or the platform equivalent)\n\n**Windows**:
|
|
55
58
|
install [RubyInstaller with MSYS2](https://rubyinstaller.org/) (UCRT64). Run once:\n\n```powershell\nridk
|
|
56
59
|
exec pacman -S --needed --noconfirm base-devel mingw-w64-ucrt-x86_64-toolchain\n```\n\nThis
|
|
57
60
|
provides the standard headers (including `strings.h`) required for the bindgen step.\n\n##
|
|
@@ -87,7 +90,7 @@ description: "# html-to-markdown-rb\n\nBlazing-fast HTML → Markdown conversion
|
|
|
87
90
|
parity with the standalone `html-to-markdown` executable.\n\n```ruby\nrequire 'html_to_markdown/cli'\n\nHtmlToMarkdown::CLI.run(%w[--heading-style
|
|
88
91
|
atx input.html], stdout: $stdout)\n# => writes converted Markdown to STDOUT\n```\n\nYou
|
|
89
92
|
can also call the CLI binary directly for scripting:\n\n```ruby\nHtmlToMarkdown::CLIProxy.call(['--version'])\n#
|
|
90
|
-
=> \"html-to-markdown 2.5.
|
|
93
|
+
=> \"html-to-markdown 2.5.6\"\n```\n\nRebuild the CLI locally if you see `CLI binary
|
|
91
94
|
not built` during tests:\n\n```bash\nbundle exec rake compile # builds
|
|
92
95
|
the extension\nbundle exec ruby scripts/prepare_ruby_gem.rb # copies the CLI into
|
|
93
96
|
lib/bin/\n```\n\n## Error Handling\n\nConversion errors raise `HtmlToMarkdown::Error`
|
|
@@ -112,15 +115,10 @@ extensions:
|
|
|
112
115
|
extra_rdoc_files:
|
|
113
116
|
- README.md
|
|
114
117
|
files:
|
|
115
|
-
- ".rubocop.yml"
|
|
116
118
|
- Cargo.toml
|
|
117
|
-
- Gemfile
|
|
118
|
-
- Gemfile.lock
|
|
119
119
|
- README.md
|
|
120
|
-
- Rakefile
|
|
121
120
|
- exe/html-to-markdown
|
|
122
121
|
- extconf.rb
|
|
123
|
-
- html-to-markdown-rb.gemspec
|
|
124
122
|
- lib/html_to_markdown.rb
|
|
125
123
|
- lib/html_to_markdown/cli.rb
|
|
126
124
|
- lib/html_to_markdown/cli_proxy.rb
|
|
@@ -138,7 +136,7 @@ metadata:
|
|
|
138
136
|
source_code_uri: https://github.com/Goldziher/html-to-markdown
|
|
139
137
|
bug_tracker_uri: https://github.com/Goldziher/html-to-markdown/issues
|
|
140
138
|
changelog_uri: https://github.com/Goldziher/html-to-markdown/releases
|
|
141
|
-
documentation_uri: https://github.com/Goldziher/html-to-markdown/blob/main/README.md
|
|
139
|
+
documentation_uri: https://github.com/Goldziher/html-to-markdown/blob/main/crates/html-to-markdown-rb/README.md
|
|
142
140
|
post_install_message:
|
|
143
141
|
rdoc_options: []
|
|
144
142
|
require_paths:
|
data/.rubocop.yml
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
plugins:
|
|
2
|
-
- rubocop-rspec
|
|
3
|
-
|
|
4
|
-
AllCops:
|
|
5
|
-
NewCops: enable
|
|
6
|
-
TargetRubyVersion: 3.2
|
|
7
|
-
Exclude:
|
|
8
|
-
- "tmp/**/*"
|
|
9
|
-
- "vendor/**/*"
|
|
10
|
-
|
|
11
|
-
Style/Documentation:
|
|
12
|
-
Enabled: false
|
|
13
|
-
|
|
14
|
-
Metrics/BlockLength:
|
|
15
|
-
Exclude:
|
|
16
|
-
- "spec/**/*"
|
|
17
|
-
- "*.gemspec"
|
|
18
|
-
|
|
19
|
-
Metrics/MethodLength:
|
|
20
|
-
Max: 15
|
|
21
|
-
|
|
22
|
-
RSpec/MultipleExpectations:
|
|
23
|
-
Enabled: false
|
|
24
|
-
|
|
25
|
-
RSpec/ExampleLength:
|
|
26
|
-
Enabled: false
|
|
27
|
-
|
|
28
|
-
RSpec/SpecFilePathFormat:
|
|
29
|
-
Enabled: false
|
data/Gemfile
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
source 'https://rubygems.org'
|
|
4
|
-
|
|
5
|
-
ruby '>= 3.2'
|
|
6
|
-
|
|
7
|
-
gemspec
|
|
8
|
-
|
|
9
|
-
group :development, :test do
|
|
10
|
-
gem 'rake-compiler'
|
|
11
|
-
gem 'rb_sys' # provides build tooling when developing locally
|
|
12
|
-
gem 'rspec'
|
|
13
|
-
gem 'rubocop', require: false
|
|
14
|
-
gem 'rubocop-rspec', require: false
|
|
15
|
-
end
|
data/Gemfile.lock
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
html-to-markdown (2.5.5)
|
|
5
|
-
rb_sys (>= 0.9, < 1.0)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
ast (2.4.3)
|
|
11
|
-
diff-lcs (1.6.2)
|
|
12
|
-
json (2.15.2)
|
|
13
|
-
language_server-protocol (3.17.0.5)
|
|
14
|
-
lint_roller (1.1.0)
|
|
15
|
-
parallel (1.27.0)
|
|
16
|
-
parser (3.3.10.0)
|
|
17
|
-
ast (~> 2.4.1)
|
|
18
|
-
racc
|
|
19
|
-
prism (1.6.0)
|
|
20
|
-
racc (1.8.1)
|
|
21
|
-
rainbow (3.1.1)
|
|
22
|
-
rake (13.3.0)
|
|
23
|
-
rake-compiler (1.3.0)
|
|
24
|
-
rake
|
|
25
|
-
rake-compiler-dock (1.9.1)
|
|
26
|
-
rb_sys (0.9.117)
|
|
27
|
-
rake-compiler-dock (= 1.9.1)
|
|
28
|
-
regexp_parser (2.11.3)
|
|
29
|
-
rspec (3.13.2)
|
|
30
|
-
rspec-core (~> 3.13.0)
|
|
31
|
-
rspec-expectations (~> 3.13.0)
|
|
32
|
-
rspec-mocks (~> 3.13.0)
|
|
33
|
-
rspec-core (3.13.6)
|
|
34
|
-
rspec-support (~> 3.13.0)
|
|
35
|
-
rspec-expectations (3.13.5)
|
|
36
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
37
|
-
rspec-support (~> 3.13.0)
|
|
38
|
-
rspec-mocks (3.13.6)
|
|
39
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
40
|
-
rspec-support (~> 3.13.0)
|
|
41
|
-
rspec-support (3.13.6)
|
|
42
|
-
rubocop (1.81.6)
|
|
43
|
-
json (~> 2.3)
|
|
44
|
-
language_server-protocol (~> 3.17.0.2)
|
|
45
|
-
lint_roller (~> 1.1.0)
|
|
46
|
-
parallel (~> 1.10)
|
|
47
|
-
parser (>= 3.3.0.2)
|
|
48
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
49
|
-
regexp_parser (>= 2.9.3, < 3.0)
|
|
50
|
-
rubocop-ast (>= 1.47.1, < 2.0)
|
|
51
|
-
ruby-progressbar (~> 1.7)
|
|
52
|
-
unicode-display_width (>= 2.4.0, < 4.0)
|
|
53
|
-
rubocop-ast (1.47.1)
|
|
54
|
-
parser (>= 3.3.7.2)
|
|
55
|
-
prism (~> 1.4)
|
|
56
|
-
rubocop-rspec (3.7.0)
|
|
57
|
-
lint_roller (~> 1.1)
|
|
58
|
-
rubocop (~> 1.72, >= 1.72.1)
|
|
59
|
-
ruby-progressbar (1.13.0)
|
|
60
|
-
unicode-display_width (3.2.0)
|
|
61
|
-
unicode-emoji (~> 4.1)
|
|
62
|
-
unicode-emoji (4.1.0)
|
|
63
|
-
|
|
64
|
-
PLATFORMS
|
|
65
|
-
arm64-darwin-24
|
|
66
|
-
ruby
|
|
67
|
-
|
|
68
|
-
DEPENDENCIES
|
|
69
|
-
html-to-markdown!
|
|
70
|
-
rake-compiler
|
|
71
|
-
rb_sys
|
|
72
|
-
rspec
|
|
73
|
-
rubocop
|
|
74
|
-
rubocop-rspec
|
|
75
|
-
|
|
76
|
-
RUBY VERSION
|
|
77
|
-
ruby 3.2.9p248
|
|
78
|
-
|
|
79
|
-
BUNDLED WITH
|
|
80
|
-
2.5.12
|
data/Rakefile
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require 'bundler/gem_tasks'
|
|
4
|
-
require 'rb_sys/extensiontask'
|
|
5
|
-
require 'rspec/core/rake_task'
|
|
6
|
-
|
|
7
|
-
GEMSPEC = Gem::Specification.load(File.expand_path('html-to-markdown-rb.gemspec', __dir__))
|
|
8
|
-
|
|
9
|
-
RbSys::ExtensionTask.new('html-to-markdown-rb', GEMSPEC) do |ext|
|
|
10
|
-
ext.lib_dir = 'lib'
|
|
11
|
-
ext.cross_compile = true
|
|
12
|
-
ext.cross_platform = %w[
|
|
13
|
-
x86_64-linux
|
|
14
|
-
x86_64-darwin
|
|
15
|
-
arm64-darwin
|
|
16
|
-
x64-mingw32
|
|
17
|
-
]
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
RSpec::Core::RakeTask.new(:spec)
|
|
21
|
-
|
|
22
|
-
task spec: :compile
|
|
23
|
-
task default: :spec
|
data/html-to-markdown-rb.gemspec
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative 'lib/html_to_markdown/version'
|
|
4
|
-
|
|
5
|
-
readme_path = File.expand_path('README.md', __dir__)
|
|
6
|
-
readme_body = File.read(readme_path, encoding: 'UTF-8')
|
|
7
|
-
|
|
8
|
-
Gem::Specification.new do |spec|
|
|
9
|
-
spec.name = 'html-to-markdown'
|
|
10
|
-
spec.version = HtmlToMarkdown::VERSION
|
|
11
|
-
spec.authors = ["Na'aman Hirschfeld"]
|
|
12
|
-
spec.email = ['nhirschfeld@gmail.com']
|
|
13
|
-
|
|
14
|
-
spec.summary = 'Blazing-fast HTML to Markdown conversion for Ruby, powered by Rust.'
|
|
15
|
-
spec.description = readme_body
|
|
16
|
-
spec.homepage = 'https://github.com/Goldziher/html-to-markdown'
|
|
17
|
-
spec.license = 'MIT'
|
|
18
|
-
|
|
19
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 3.2')
|
|
20
|
-
|
|
21
|
-
spec.bindir = 'exe'
|
|
22
|
-
spec.executables = ['html-to-markdown']
|
|
23
|
-
spec.require_paths = ['lib']
|
|
24
|
-
|
|
25
|
-
spec.files = `git ls-files -z`.split("\x0")
|
|
26
|
-
spec.extra_rdoc_files = ['README.md']
|
|
27
|
-
|
|
28
|
-
spec.extensions = ['extconf.rb']
|
|
29
|
-
|
|
30
|
-
spec.add_dependency 'rb_sys', '>= 0.9', '< 1.0'
|
|
31
|
-
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
32
|
-
spec.metadata['homepage_uri'] = 'https://github.com/Goldziher/html-to-markdown'
|
|
33
|
-
spec.metadata['source_code_uri'] = 'https://github.com/Goldziher/html-to-markdown'
|
|
34
|
-
spec.metadata['bug_tracker_uri'] = 'https://github.com/Goldziher/html-to-markdown/issues'
|
|
35
|
-
spec.metadata['changelog_uri'] = 'https://github.com/Goldziher/html-to-markdown/releases'
|
|
36
|
-
spec.metadata['documentation_uri'] = 'https://github.com/Goldziher/html-to-markdown/blob/main/README.md'
|
|
37
|
-
end
|