Fix GFM markdown rendering in production #265

Merged
raucao merged 1 commits from bugfix/kramdown into master 2026-11-04 13:37:53 +00:00
Owner

Rich-text content pages (e.g. /contributions/other) raised Kramdown::Error: kramdown has no parser to handle the specified input format: GFM in production.

kramdown-parser-gfm was only available transitively through solargraph, which is in the development group, so the GFM parser was missing from production installs. This declares kramdown-parser-gfm as a direct dependency and adds a regression spec for ApplicationHelper#markdown_to_html.

Verified by running the spec with BUNDLE_WITHOUT=development to reproduce the production gem set: the spec fails with the reported error before the change and passes after it.

Fixes #264

Rich-text content pages (e.g. `/contributions/other`) raised `Kramdown::Error: kramdown has no parser to handle the specified input format: GFM` in production. `kramdown-parser-gfm` was only available transitively through `solargraph`, which is in the `development` group, so the GFM parser was missing from production installs. This declares `kramdown-parser-gfm` as a direct dependency and adds a regression spec for `ApplicationHelper#markdown_to_html`. Verified by running the spec with `BUNDLE_WITHOUT=development` to reproduce the production gem set: the spec fails with the reported error before the change and passes after it. Fixes #264
raucao added 1 commit 2026-11-04 13:36:34 +00:00
Fix GFM markdown rendering in production
CI / Test (pull_request) Successful in 48s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
b62d5a6035
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
raucao added the bugkredits-1 labels 2026-11-04 13:37:49 +00:00
raucao merged commit 2fff2d7e09 into master 2026-11-04 13:37:53 +00:00
raucao deleted branch bugfix/kramdown 2026-11-04 13:37:54 +00:00
Sign in to join this conversation.