markdowner 0.1.2 → 0.1.4
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/README.md +4 -23
- data/lib/markdowner/engine.rb +0 -4
- data/lib/markdowner/version.rb +1 -1
- data/lib/markdowner.rb +0 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d48929a3635cff25d93a1db9cbbf76434579211278c0ac27e99a0d251e42fb5
|
|
4
|
+
data.tar.gz: 279f34cc0c52b46596a77fbb1d4ee68573ac0e242cc9896a6a2abd52d7ebd526
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c3bef01575ce43b7c03af5f536cea6767199dda1eb2bed3b38ad822486ace7f821d3417bcd2d8aae70c18fc469028f18b0afb3fb78bf01002e753591bb3ce2e
|
|
7
|
+
data.tar.gz: dcf3a6effd059e48b678c9f2a1c92ee9ac483f7544f22a1472dc043cc0f65b854f0a49857a7c1e1da421d56dd6153e665375362796d116f957a189e258fdc3a1
|
data/README.md
CHANGED
|
@@ -1,38 +1,19 @@
|
|
|
1
1
|
# Markdowner
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enable Markdown files in your `app/views/` directory.
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
|
-
After installing the gem you can create and use markdown files in your view folders.
|
|
7
|
+
After installing the gem you can create and use markdown files in your view folders.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Markdowner comes with the [prismjs](https://prismjs.com/) library for syntax highlighting. You're free to use any other library you like, skip this section and include your own.
|
|
12
|
-
|
|
13
|
-
- To enable it add the following to your layout.
|
|
14
|
-
|
|
15
|
-
```language-erb
|
|
16
|
-
<%= stylesheet_link_tag 'markdowner/prism', media: 'all' %>
|
|
17
|
-
<%= javascript_include_tag 'markdowner/prism' %>
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Then in your markdown file you can use the following syntax for code blocks.
|
|
21
|
-
|
|
22
|
-
````markdown
|
|
23
|
-
```language-ruby
|
|
24
|
-
your code here
|
|
25
|
-
```
|
|
26
|
-
````
|
|
27
|
-
|
|
28
|
-
<img width="656" alt="image" src="https://github.com/lbp-dev/markdowner/assets/148717241/090a0795-4841-4a5a-8ed6-66f77987c9ab">
|
|
9
|
+
- Markdown files are rendered as HTML using the [redcarpet](https://github.com/vmg/redcarpet) gem.
|
|
29
10
|
|
|
30
11
|
## Installation
|
|
31
12
|
|
|
32
13
|
Add this line to your application's Gemfile:
|
|
33
14
|
|
|
34
15
|
```ruby
|
|
35
|
-
gem "markdowner"
|
|
16
|
+
gem "markdowner"
|
|
36
17
|
```
|
|
37
18
|
|
|
38
19
|
And then execute:
|
data/lib/markdowner/engine.rb
CHANGED
data/lib/markdowner/version.rb
CHANGED
data/lib/markdowner.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: markdowner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- elpdev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -44,7 +44,7 @@ dependencies:
|
|
|
44
44
|
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
46
|
version: '3.6'
|
|
47
|
-
description:
|
|
47
|
+
description: Enable markdown files in your app/views/ directory.
|
|
48
48
|
email:
|
|
49
49
|
- 148717241+elpdev@users.noreply.github.com
|
|
50
50
|
executables: []
|
|
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
74
74
|
requirements:
|
|
75
75
|
- - ">="
|
|
76
76
|
- !ruby/object:Gem::Version
|
|
77
|
-
version: '
|
|
77
|
+
version: '0'
|
|
78
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - ">="
|
|
@@ -84,5 +84,5 @@ requirements: []
|
|
|
84
84
|
rubygems_version: 3.5.13
|
|
85
85
|
signing_key:
|
|
86
86
|
specification_version: 4
|
|
87
|
-
summary:
|
|
87
|
+
summary: Enable markdown files in your app/views/ directory.
|
|
88
88
|
test_files: []
|