marksmith 0.0.9 → 0.0.11

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: 5048b1b713d7733f7f984e974fe69916ba8b7c7890cce4ef58929180595faf57
4
- data.tar.gz: ce8ec02a0448ccaf21699c39218481f4fc40d60e0849dd067dd98388483ae8f0
3
+ metadata.gz: 5eb26aeaa24188df02fdfaa2f3eccaecc28feac32420ff31e34328359b7939c8
4
+ data.tar.gz: e5ae028f87a6c7bceeea0ac89269e320422d1466dd3b3de17d1c7dade9c49b0d
5
5
  SHA512:
6
- metadata.gz: 3834374a23d891a8733ce075cbd908e440927ec8eddb7eb29bf05125b50abe2fdb9908dc98703976dc527a5884243f2dee0468d8eba5fd8b06fb39db861552ce
7
- data.tar.gz: 2086a3e7627490e56e334a8c86da9275c2169c7bc57e62ff5d7a0c250ba819ce32b1fbbf464797e67c4154ba6926eb7740414340f06283460492e198501392c6
6
+ metadata.gz: 578c3ed2d9ee8c3d58499f5c08edd8b469166f45f98c7b746912a95c04e780b5c310610ec6b83330253e924706827e9c6ae633fadd2f9e7347b2d1f084f0f017
7
+ data.tar.gz: 9c4f92ce4997de77e065a9906994dbb4eb611f79648fa4acefcf61f83a02dded7c6a9b9203815f72dbedfb824ad38c9824f79004641133a1352554db5263d5e1
data/README.md CHANGED
@@ -4,6 +4,8 @@ Marksmith is a GitHub-style markdown editor for Rails apps.
4
4
 
5
5
  It supports Active Storage attachments and comes with a built-in mardown preview renderer.
6
6
 
7
+ [![Marksmith demo](https://github.com/user-attachments/assets/09820413-7b2f-4d9d-a6a5-a9b1d5b90bea)](https://github.com/user-attachments/assets/f257db9d-6bfd-4fbc-ac10-dff1dfc99ff2)
8
+
7
9
  ## Usage
8
10
 
9
11
  ```erb
@@ -1,5 +1,4 @@
1
1
  require "redcarpet"
2
- require "rouge"
3
2
 
4
3
  module Marksmith
5
4
  class Renderer
@@ -1,6 +1,6 @@
1
1
  <%= turbo_stream.update params[:element_id] do %>
2
2
  <div class="ms:px-3 ms:py-2">
3
- <%= render "marksmith/shared/rendered_body", body: @body %>
3
+ <%= render partial: "marksmith/shared/rendered_body", locals: { body: @body } %>
4
4
  </div>
5
5
  <% end %>
6
6
 
@@ -1,3 +1,3 @@
1
1
  <%= content_tag :div, class: "ms:prose ms:prose-zinc" do %>
2
- <%= sanitize(@body, tags: %w(table th tr td span) + ActionView::Helpers::SanitizeHelper.sanitizer_vendor.safe_list_sanitizer.allowed_tags.to_a) %>
2
+ <%= sanitize(body, tags: %w(table th tr td span) + ActionView::Helpers::SanitizeHelper.sanitizer_vendor.safe_list_sanitizer.allowed_tags.to_a) %>
3
3
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Marksmith
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marksmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin