Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/add markdown input #409

Merged
merged 5 commits into from Jun 28, 2022
Merged

Feat/add markdown input #409

merged 5 commits into from Jun 28, 2022

Conversation

CarloGauss33
Copy link
Contributor

Changes

This PR adds markdown rendering through Redcarpet gem.

In particular, it adds MarkdownBuilder that exposes the markdown_column and markdown_row renderers in active admin.

Example:

Using the following input
image

and using the builder in the admin

show do
  attributes_table do
    markdown_row(:description)
  end
end

Results in:

image

@CarloGauss33 CarloGauss33 merged commit 6992c91 into master Jun 28, 2022
@CarloGauss33 CarloGauss33 deleted the feat/add-markdown-input branch June 28, 2022 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants