bridgetown_internal_markdown_links 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5af81b6852818436a175b23ee682d48ee8f65c7bf2e84bd9c464e685542b22c
4
- data.tar.gz: 28d22f8b05e5cdada85060e0a039a25b964ddad08580ef06211d69daed0aea39
3
+ metadata.gz: b7b9d97ffa784e163534bdcfead76a9066fe6c9faa075e06ab532fdf77db4f11
4
+ data.tar.gz: f9c1ec739efe3fd1d86befca674eb7a8c07913c75e990d613682e72aed57fb3a
5
5
  SHA512:
6
- metadata.gz: 8959cb5ec3cc01b821eac074690714bc568de4d770098064003d364dbdd4c05091e0a1933f7b8809e33b7c067853f02dfb879de9e6210840d7a36e7a22bd0b94
7
- data.tar.gz: 7fc681db4d1b6abaf9e090e7813a99f2c6482f929f7087d4adf338d6a3ec8ab1c1f52b9f0c1044d174387f96771d635e838b8b4cc446f2c84a11ad39a65c0c0f
6
+ metadata.gz: 6d0006f2bff76b1700a6b918aa915874deb635fa0edb539435b6439ac26986a10f74a14ccde803fb0c0a5158028bbf9f02bd9a7ae6d73295a1f2755ab63ceb2b
7
+ data.tar.gz: 8ad3cc0e88a61c9827a6d685017bb8122e9e83d093301d3448d59ca552428bd0d60047a25dfbd3cce157626615c5b9ae4acf1b96aa14c05a47c8a1d004b0061c
data/README.md CHANGED
@@ -1,10 +1,14 @@
1
1
  # 🔗 Bridgetown Internal Markdown links
2
2
 
3
- This plugin allows you to write paths in your markdown, like so:
3
+ This plugin allows you to write paths in your markdown similar to how you can within liquid, serbea or erb template files, like so:
4
4
 
5
- `[Check out the docs](_pages/docs.erb)`.
5
+ `[Check out the docs](_pages/docs.erb)`
6
6
 
7
- Instead of the page's absolute url (ex. "/docs/"). If the slug is changed for that page, you don't have to go and do a find/replace throughout your site.
7
+ Instead of:
8
+
9
+ `[Check out the docs](/docs/)`
10
+
11
+ (and do a find/replace throughout your site, if the slug changes for that page).
8
12
 
9
13
  This plugin uses Bridgetown's `url_for()` helper in the background.
10
14
 
@@ -27,7 +27,7 @@ module BridgetownInternalMarkdownLinks
27
27
  resource.content.gsub!(MARKDOWN_LINK_REGEX) do
28
28
  match = Regexp.last_match
29
29
  label = match[1]
30
- link = match[2]
30
+ link = match[2].split.first
31
31
 
32
32
  if excluding?(link)
33
33
  "[#{label}](#{link})"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BridgetownInternalMarkdownLinks
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown_internal_markdown_links
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spinal Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-24 00:00:00.000000000 Z
11
+ date: 2023-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bridgetown
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
- rubygems_version: 3.4.7
111
+ rubygems_version: 3.4.14
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Parse internal links in markdown files