markdowner 0.1.3 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af27374e842d8ab8b36303256a4f860821a96f408002d263b2ecd35a6804503b
4
- data.tar.gz: bb378abf4a241b6b8c38dd362cd1af7986755528a287e513898fc3169806b465
3
+ metadata.gz: 6d48929a3635cff25d93a1db9cbbf76434579211278c0ac27e99a0d251e42fb5
4
+ data.tar.gz: 279f34cc0c52b46596a77fbb1d4ee68573ac0e242cc9896a6a2abd52d7ebd526
5
5
  SHA512:
6
- metadata.gz: 9d961e166b04b606ddd2657a3ae91a2702c5a67149e20db7c3fec859c42e8197e971623479cec8d2465778a261e67b237e12afb6aaedff593927bd66731e4276
7
- data.tar.gz: 9534c59c5dbef6429f61b37fc1d433a43d917550c1bddf1f488bc6b99ac5acb2e27170c3f3f107aad98f41cb5ac5eddc8dd527dfce21f24580900e12aa96d934
6
+ metadata.gz: 7c3bef01575ce43b7c03af5f536cea6767199dda1eb2bed3b38ad822486ace7f821d3417bcd2d8aae70c18fc469028f18b0afb3fb78bf01002e753591bb3ce2e
7
+ data.tar.gz: dcf3a6effd059e48b678c9f2a1c92ee9ac483f7544f22a1472dc043cc0f65b854f0a49857a7c1e1da421d56dd6153e665375362796d116f957a189e258fdc3a1
data/README.md CHANGED
@@ -1,39 +1,12 @@
1
1
  # Markdowner
2
2
 
3
- Simple rails gem to use Markdown files in your views.
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. The markdown files are rendered as html using the redcarpet gem.
7
+ After installing the gem you can create and use markdown files in your view folders.
8
8
 
9
- ### Syntax Highlighting
10
-
11
- Markdowner comes with the [prismjs](https://prismjs.com/) library for syntax highlighting. You're free to use any other library you like, just 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
- - Update your `manifest.json`
21
-
22
- ```json
23
- //= link markdowner/prism.css
24
- //= link markdowner/prism.js
25
-
26
- ```
27
-
28
- Then in your markdown file you can use the following syntax for code blocks.
29
-
30
- ````markdown
31
- ```language-ruby
32
- your code here
33
- ```
34
- ````
35
-
36
- <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.
37
10
 
38
11
  ## Installation
39
12
 
@@ -10,12 +10,5 @@ module Markdowner
10
10
  Markdowner::Handlers::MarkdownHandler.new
11
11
  )
12
12
  end
13
-
14
- initializer "markdowner.assets.precompile" do |app|
15
- app.config.assets.precompile += %w[markdowner/prism.js markdowner/prism.css]
16
- end
17
-
18
- # Add the vendor directory to the load path
19
- config.autoload_paths += %W[#{config.root}/vendor]
20
13
  end
21
14
  end
@@ -1,3 +1,3 @@
1
1
  module Markdowner
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-07-01 00:00:00.000000000 Z
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: Rails gem that enables markdown files in your app/views directory.
47
+ description: Enable markdown files in your app/views/ directory.
48
48
  email:
49
49
  - 148717241+elpdev@users.noreply.github.com
50
50
  executables: []
@@ -59,8 +59,6 @@ files:
59
59
  - lib/markdowner/handlers/markdown_handler.rb
60
60
  - lib/markdowner/version.rb
61
61
  - lib/tasks/markdowner_tasks.rake
62
- - vendor/assets/javascripts/markdowner/prism.js
63
- - vendor/assets/stylesheets/markdowner/prism.css
64
62
  homepage: https://github.com/lbp-dev/markdowner
65
63
  licenses:
66
64
  - MIT
@@ -76,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
74
  requirements:
77
75
  - - ">="
78
76
  - !ruby/object:Gem::Version
79
- version: '3.0'
77
+ version: '0'
80
78
  required_rubygems_version: !ruby/object:Gem::Requirement
81
79
  requirements:
82
80
  - - ">="
@@ -86,5 +84,5 @@ requirements: []
86
84
  rubygems_version: 3.5.13
87
85
  signing_key:
88
86
  specification_version: 4
89
- summary: Handle markdown files in Rails applications.
87
+ summary: Enable markdown files in your app/views/ directory.
90
88
  test_files: []