jekyll_pre 1.1.7 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +12 -5
- data/jekyll_pre.gemspec +1 -1
- data/lib/jekyll_pre/version.rb +1 -1
- data/lib/jekyll_pre.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c319e1e24db16309a2df595cd44df695cd239eba0c477af076a12fc25033e292
|
4
|
+
data.tar.gz: edddecc3b1265d3741d4c7a5eac9cf6980f305541fa003f14f67d7a0165c3766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cef3e92951e7d2f53107a8ade5dd04d52b8bc505fd4112bb0689a8bf7a245b6088c3e56238a211a73362c1ff6cf978ff3646ed289b667533e2495838f7127e4
|
7
|
+
data.tar.gz: c5b8067ee37fe465aa697acc30bdb8e6d54b85c020da4fa80d788f978a72d729745c9b3556caa563edbb358d770b95e0e07e6bf0addf23aad0818c0cf2e4b00d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -11,20 +11,27 @@ This Jekyll plugin provides 2 new Liquid tags that work together:
|
|
11
11
|
{% endpre %}
|
12
12
|
```
|
13
13
|
`Options` are:
|
14
|
+
- `class="class1 class2"` – Apply CSS classes
|
14
15
|
- `clear` – Line break after floating HTML elements
|
15
|
-
- `class="class names"` – Apply CSS styles
|
16
16
|
- `copyButton` – Generate a copy button
|
17
17
|
- `dark` – Dark mode
|
18
|
-
- `label='This is a label'` – Apply text above pre tag
|
18
|
+
- `label='This is a label'` – Apply text above `pre` tag.
|
19
|
+
The `label` parameter value can also be specified in free text.
|
20
|
+
For example, the following produce the same results:
|
21
|
+
|
22
|
+
- {% pre label="This is a label" %}<br>Contents of pre tag<br>{% endpre %}
|
23
|
+
|
24
|
+
- {% pre This is a label %}<br>Contents of pre tag<br>{% endpre %}
|
19
25
|
- `number` – Number the lines
|
20
26
|
- `shell` – Equivalent to `label='Shell'`
|
21
27
|
- `style` – Apply CSS styles
|
22
28
|
|
23
29
|
The generated <pre></pre> tag has an `data-lt-active="false"` attribute, so [LanguageTool](https://forum.languagetool.org/t/avoid-spell-check-on-certain-html-inputs-manually/3944) does not check the spelling or grammar of the contents.
|
24
|
-
* A `noselect` tag that can renders HTML content passed to it unselectable
|
30
|
+
* A `noselect` tag that can renders HTML content passed to it unselectable,
|
31
|
+
and generates a <code>$</code> prompt if no content is provided.
|
25
32
|
```
|
26
|
-
{% pre
|
27
|
-
{% noselect [text string, defaults to $]%}Contents of pre tag
|
33
|
+
{% pre %}
|
34
|
+
{% noselect [optional text string, defaults to $]%}Contents of pre tag
|
28
35
|
{% endpre %}
|
29
36
|
```
|
30
37
|
|
data/jekyll_pre.gemspec
CHANGED
data/lib/jekyll_pre/version.rb
CHANGED
data/lib/jekyll_pre.rb
CHANGED
@@ -85,7 +85,7 @@ end
|
|
85
85
|
|
86
86
|
# """\\{% noselect %} or \\{% noselect this all gets copied.
|
87
87
|
# Also, space before the closing percent is signficant %}"""
|
88
|
-
class UnselectableTag < JekyllSupport::
|
88
|
+
class UnselectableTag < JekyllSupport::JekyllTagNoArgParsing
|
89
89
|
def render_impl
|
90
90
|
text = @argument_string
|
91
91
|
text = '$ ' if text.nil? || text.empty?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_pre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.5.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.5.0
|
41
41
|
description: 'Jekyll tags pre and noselect, for HTML <pre/> tag, prompts and unselectable
|
42
42
|
text. Can number lines.
|
43
43
|
|