Skip to content

Feat/add markdown input#409

Merged
CarloGauss33 merged 5 commits into
masterfrom
feat/add-markdown-input
Jun 28, 2022
Merged

Feat/add markdown input#409
CarloGauss33 merged 5 commits into
masterfrom
feat/add-markdown-input

Conversation

@CarloGauss33

Copy link
Copy Markdown
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 requested a review from ldlsegovia June 24, 2022 20:09
Comment thread lib/activeadmin_addons/addons/markdown_builder.rb
@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.

3 participants