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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc407621c244d535298d5ef7bba49beaf599a4b095132bbfc90d47003401e970
4
- data.tar.gz: 978c696e6f4dbbe25b72928b6ce7232ec129181b8fad2bc574359f753f506178
3
+ metadata.gz: 6d48929a3635cff25d93a1db9cbbf76434579211278c0ac27e99a0d251e42fb5
4
+ data.tar.gz: 279f34cc0c52b46596a77fbb1d4ee68573ac0e242cc9896a6a2abd52d7ebd526
5
5
  SHA512:
6
- metadata.gz: 1e71aa8f0072dbde4f967af7296ecf7ed80240b2395cf597985aca3a15a41d37d600161162839a3999bf68ee1b2c9fa8b2bef8cdb8f79fef8a26f1cb9bcfb356
7
- data.tar.gz: 86094c20030310928836829766e9b00ade5b1264a02c78217b3ba861f7c1ca24fa1d69f981a453f3128a3f2187e7c4364e4addd828c0db0b4c0e47d78dca1af0
6
+ metadata.gz: 7c3bef01575ce43b7c03af5f536cea6767199dda1eb2bed3b38ad822486ace7f821d3417bcd2d8aae70c18fc469028f18b0afb3fb78bf01002e753591bb3ce2e
7
+ data.tar.gz: dcf3a6effd059e48b678c9f2a1c92ee9ac483f7544f22a1472dc043cc0f65b854f0a49857a7c1e1da421d56dd6153e665375362796d116f957a189e258fdc3a1
data/README.md CHANGED
@@ -1,38 +1,19 @@
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, 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", path: "../markdowner"
16
+ gem "markdowner"
36
17
  ```
37
18
 
38
19
  And then execute:
@@ -10,9 +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
13
  end
18
14
  end
@@ -1,3 +1,3 @@
1
1
  module Markdowner
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/markdowner.rb CHANGED
@@ -2,5 +2,4 @@ require "markdowner/version"
2
2
  require "markdowner/engine"
3
3
 
4
4
  module Markdowner
5
- # Your code goes here...
6
5
  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.2
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-06-30 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: []
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - ">="
76
76
  - !ruby/object:Gem::Version
77
- version: '3.0'
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: Handle markdown files in Rails applications.
87
+ summary: Enable markdown files in your app/views/ directory.
88
88
  test_files: []