markdownr 0.5.8 → 0.5.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44c223ecfa0f81c35d2d3d89a5c316eb2adc7f0a343db241185dc828268d3527
4
- data.tar.gz: 7b87a1fed84d540c89bc92bea8de754eee3d680ba93f952ad4b23c7150aa06b3
3
+ metadata.gz: 84700eb63ad3d72b16419ce7e3d1df58fd543e20b28db82197bd65336e1ae5d9
4
+ data.tar.gz: 6043776aefb91dcc08d280fec07cd06b9f2f2a4061c380ec7a856d37838b312a
5
5
  SHA512:
6
- metadata.gz: 8eb259d062a13af47d3126ea380777e01aba1f1e6bc9401fb2f05c8277e9a827d6e16f9299e96768236574114875c0f4d2b5ab273094513c71670afa765f3e12
7
- data.tar.gz: 56fda7d165fecbec5b46d8a496d257aa38164684779225bfac6e1d9da00df3fb8da3e90fbd4c58c435f2680a21869271f06c4b3791df48b9ac1b6d64e7359277
6
+ metadata.gz: cdd4ccae742493f6bf4d8e8960e22b91e984ad2aa9954c89131a9bb98d22af6d5e6181177b7e29764b86f0267f42624c2df19ce8e7477e9bfe6c0620a1d41144
7
+ data.tar.gz: c1984de4fb7097acf566bdb530d287e4e500ff151525773a6b258014d35582eb83269573c47882cb0fe232ab56fcde83c588fe50377b3e7782827a94fc895f95
@@ -636,8 +636,10 @@ module MarkdownServer
636
636
  inflections.sort_by! { |i| -i[:freq] }
637
637
  if inflections.any?
638
638
  rows = inflections.map { |i|
639
- link = i[:href] ? %(<a href="#{h(i[:href])}" target="_blank" rel="noopener">#{h(i[:word])}</a>) : h(i[:word])
640
- %(<tr><td>#{link}</td><td class="blb-right">#{i[:freq]}x</td></tr>)
639
+ match = i[:word] == word
640
+ cls = match ? ' class="blb-match"' : ""
641
+ link = i[:href] ? %(<a href="#{h(i[:href])}" target="_blank" rel="noopener">#{h(i[:word])}</a>) : h(i[:word])
642
+ %(<tr><td#{cls}>#{link}</td><td class="blb-right">#{i[:freq]}x</td></tr>)
641
643
  }.join
642
644
  infl_html = %(<h4 class="blb-heading">Inflections</h4>) +
643
645
  %(<table class="blb-table"><thead><tr><th class="blb-th">Form</th>) +
@@ -1,3 +1,3 @@
1
1
  module MarkdownServer
2
- VERSION = "0.5.8"
2
+ VERSION = "0.5.9"
3
3
  end
data/views/layout.erb CHANGED
@@ -319,10 +319,12 @@
319
319
  a.wiki-link {
320
320
  color: #6a8e3e;
321
321
  border-bottom: 1px dashed #6a8e3e;
322
+ margin: 0 0.2rem;
322
323
  }
323
324
  span.wiki-link.broken {
324
325
  color: #c44;
325
326
  border-bottom: 1px dashed #c44;
327
+ margin: 0 0.2rem;
326
328
  }
327
329
 
328
330
  /* Raw/code view */
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdownr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Dunn