Files
akkounts/spec/helpers/application_helper_spec.rb
T
raucao b62d5a6035
CI / Test (pull_request) Successful in 48s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
Fix GFM markdown rendering in production
kramdown-parser-gfm was only pulled in transitively by solargraph, which
lives in the development group. Production installs therefore lacked the
GFM parser, so rendering any rich-text content page raised
"Kramdown::Error: kramdown has no parser to handle the specified input
format: GFM".

Declare kramdown-parser-gfm as a direct dependency and add a regression
spec for ApplicationHelper#markdown_to_html.

Fixes #264
2026-11-04 17:36:19 +04:00

14 lines
355 B
Ruby

require 'rails_helper'
describe ApplicationHelper do
describe "#markdown_to_html" do
it "renders GFM input" do
expect(helper.markdown_to_html("**bold**")).to include("<strong>bold</strong>")
end
it "renders GFM-specific syntax" do
expect(helper.markdown_to_html("~~struck~~")).to include("<del>struck</del>")
end
end
end