asciidoctor-comment-links 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor-comment-links.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2d7da6599d8630e9b78f6b11a01627c4a20e48f0f31da1428b0af2eb912bbf8
|
4
|
+
data.tar.gz: 02e71715d45b1da9768565d385ef37c4c75a751df2da0f9eec344c6e55f8a79b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e914dceb382fc3095f754e7aec6ae79ee0c76577d35f354645eaeb5c420ebee29eec1ded0b9568a14be5a2213c8c9b5ecf4b8732eb453e4a830217541969bb0d
|
7
|
+
data.tar.gz: fd28b0243bc54e2efcc73c577c810c1c25af03d782dc13f15a3d069dd0a007fedac9eef63e82ef73d67f4f4f27f2cd362880746083bde34378cf4d42ed621e46
|
@@ -9,7 +9,7 @@ module AsciidoctorCommentLinks
|
|
9
9
|
formatter.singleton_class.prepend (Module.new do
|
10
10
|
def safe_span tok, safe_val
|
11
11
|
if tok.token_chain[0].matches? ::Rouge::Token::Tokens::Comment
|
12
|
-
safe_val = safe_val.gsub %r/https?:\/\/\S+/, '<a href="\&">\&</a>'
|
12
|
+
safe_val = safe_val.gsub %r/https?:\/\/\S+/, '<a href="\&" target="_blank">\&</a>'
|
13
13
|
end
|
14
14
|
super
|
15
15
|
end
|
metadata
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-comment-links
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- diguage
|
8
|
+
- Dan Allen
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
@@ -82,7 +83,9 @@ dependencies:
|
|
82
83
|
version: '3.29'
|
83
84
|
description: It is an Asciidoctor Extension, it turns the link in the comment of the
|
84
85
|
source block into a clickable jump link.
|
85
|
-
email:
|
86
|
+
email:
|
87
|
+
- leejun119@gmail.com
|
88
|
+
- dan.j.allen@gmail.com
|
86
89
|
executables: []
|
87
90
|
extensions: []
|
88
91
|
extra_rdoc_files: []
|
@@ -108,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
111
|
- !ruby/object:Gem::Version
|
109
112
|
version: '0'
|
110
113
|
requirements: []
|
111
|
-
rubygems_version: 3.
|
114
|
+
rubygems_version: 3.5.9
|
112
115
|
signing_key:
|
113
116
|
specification_version: 4
|
114
117
|
summary: Turn the link in the comment of the source block into a clickable jump link.
|