diff --git a/CHANGELOG.md b/CHANGELOG.md index ec41f987..70b113fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ * Require minimum Elixir v1.14 ### Enhancements - * Enable Markdown options: `:footnotes`, `:multiline_block_quotes`, `:shortcodes` (emojis), `:underline`, `:escape`, `:relaxed_tasklist_matching`, and `:relaxed_autolinks`. + * Enable Markdown options: `:footnotes`, `:multiline_block_quotes`, `:shortcodes` (emojis), `:underline`, `:relaxed_tasklist_matching`, and `:relaxed_autolinks`. See https://docs.rs/comrak/latest/comrak/struct.ExtensionOptions.html and https://docs.rs/comrak/latest/comrak/struct.ParseOptions.html for more info. * Added Shared Info Handlers (`info_handle` callbacks) - [#578](https://github.com/BeaconCMS/beacon/pull/578) by [@ddink](https://github.com/ddink) diff --git a/dev.exs b/dev.exs index 04805670..dc04dcee 100644 --- a/dev.exs +++ b/dev.exs @@ -352,11 +352,101 @@ dev_seeds = fn -> layout_id: layout.id, format: "markdown", template: """ - # My Markdown Page + ## Headings - ## Intro + # H1 + + ## H2 + + ### H3 + + ## Text Decoration + + Bold: **bold text** + + Italics: *italicized text* + + Subscript: H~2~O + + Superscript: X^2^ + + Emoji: :joy: + + > blockquote + + ## Lists + + 1. ordered list item 1 + 2. ordered list item 2 + 3. ordered list item 3 + + - unordered list item + - unordered list item + - unordered list item + + - [x] Completed task list item + - [ ] incomplete task list item + - [ ] incomplete task list item + + ## Code + + `inline code` + + ```elixir + %{ + "firstName" => "John", + "lastName" => "Smith", + "age" => 25 + } + ``` + + ## Hyperlink Back to [Home](/dev) + + [link](https://example.com) + + ## Image + + ![image](https://assets.dockyard.com/images/narwin-press-release-og-v2.svg) + + ## Table + + | Table | Header | + | ----------- | ----------- | + | Header | Title | + | Paragraph | Text | + + ## Footnote + + Here's a sentence with a footnote. [^1] + + [^1]: This is the footnote. + + ## Description List + + term + + : definition + + First Horizontal Line + + *** + + Second One + + ----- + + Third + + _________ + + + ## Embeds + + + +

Read about what people are building with LiveView Native and how easy it's been for them to get up and goinghttps://t.co/HtO3a7fYZ7#myelixirstatus

— LiveView Native (@liveviewnative) September 24, 2024
""" }) diff --git a/lib/beacon/template/markdown.ex b/lib/beacon/template/markdown.ex index 964f59c1..429741ee 100644 --- a/lib/beacon/template/markdown.ex +++ b/lib/beacon/template/markdown.ex @@ -38,7 +38,6 @@ defmodule Beacon.Template.Markdown do render: [ hardbreaks: false, unsafe_: true, - escape: true, relaxed_tasklist_matching: true, relaxed_autolinks: true ],