wikitxt 0.1.7 → 0.1.8

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: 2d7d36aaac23a1d7ba85f0c1b966722702fb988545fa7f4f1550eb0bfad2423e
4
- data.tar.gz: 141d7bdcfe59efb10c1f3be0295c370fc9aaefbb94dd973cadb7968d76c13971
3
+ metadata.gz: 73eb1677244102056a2c0ce55f4b155dd93458e7cb323e838cf7a9c4f4d2b340
4
+ data.tar.gz: 77a2f7d698c476d522839228054216d9a223dc486cd6bc7f9b84683a6ddd574a
5
5
  SHA512:
6
- metadata.gz: 0ad58a00cd43a4ded7bb066000774095e39eb52eba0a5fdd5ee1827868868a7e830efc836d7afaaedc04c0db59b22615e4c604b13a8de71b77a5b25dbdb29319
7
- data.tar.gz: 9b014e93d894663b6ac222361cd01b0906c84666f207917185a190a5cb10477c0a40e292af7f9b8daef6b11cba102309df414639c43c188f8fcd4194ef2db9b5
6
+ metadata.gz: 46496b95ccd05a44058ec74c1ee7190743921af27a4a9503ae664095b32741f3c9b1a1d0716873f4a88dee0c7bf92106c5b511f3cffa515cad98f830306be353
7
+ data.tar.gz: 85fb0547e9f9a990a0ec5f257bcaa2d4964fd18bc70c274c9c12f545ed5ba4b447219f19aa77ef53b025301c68d968df8341577cb8eaec74cc2b2fd42f90a90a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wikitxt (0.1.7)
4
+ wikitxt (0.1.8)
5
5
  rackup (~> 2.1)
6
6
  sinatra (~> 4.0)
7
7
  thor (~> 1.3)
data/lib/wikitxt/node.rb CHANGED
@@ -30,7 +30,7 @@ module Wikitxt
30
30
  def to_html
31
31
  <<~HTML
32
32
  <div class="line">
33
- <div class="dot" style="margin-left: #{attrs[:indent] * 5}px;"></div>
33
+ <div style="margin-left: #{attrs[:indent] * 10}px;"></div>
34
34
  <div class="list">#{Parser::Inline.new(self).to_html}</div>
35
35
  </div>
36
36
  HTML
@@ -45,7 +45,7 @@ module Wikitxt
45
45
 
46
46
  class LinkNode < BaseNode
47
47
  def to_html
48
- " <a href=\"#{attrs[:url]}\">#{CGI.escapeHTML(attrs[:title])}</a> "
48
+ " <a href=\"#{attrs[:url]}\">#{!attrs[:title].empty? ? CGI.escapeHTML(attrs[:title]) : attrs[:url]}</a> "
49
49
  end
50
50
  end
51
51
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wikitxt
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.8"
5
5
  end
@@ -31,13 +31,6 @@
31
31
  min-height: 1rem;
32
32
  }
33
33
 
34
- .dot {
35
- width: 5px;
36
- height: 5px;
37
- background: #333;
38
- border-radius: 100%;
39
- }
40
-
41
34
  pre, code {
42
35
  background: #eee;
43
36
  margin: 0;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wikitxt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moeki Kawakami
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-13 00:00:00.000000000 Z
11
+ date: 2024-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor