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 +4 -4
- data/lib/markdown_server/app.rb +4 -2
- data/lib/markdown_server/version.rb +1 -1
- data/views/layout.erb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84700eb63ad3d72b16419ce7e3d1df58fd543e20b28db82197bd65336e1ae5d9
|
|
4
|
+
data.tar.gz: 6043776aefb91dcc08d280fec07cd06b9f2f2a4061c380ec7a856d37838b312a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdd4ccae742493f6bf4d8e8960e22b91e984ad2aa9954c89131a9bb98d22af6d5e6181177b7e29764b86f0267f42624c2df19ce8e7477e9bfe6c0620a1d41144
|
|
7
|
+
data.tar.gz: c1984de4fb7097acf566bdb530d287e4e500ff151525773a6b258014d35582eb83269573c47882cb0fe232ab56fcde83c588fe50377b3e7782827a94fc895f95
|
data/lib/markdown_server/app.rb
CHANGED
|
@@ -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
|
-
|
|
640
|
-
|
|
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>) +
|
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 */
|