class Primer::Beta::Markdown
Use ‘Markdown` to wrap markdown content.
def call
def call render(Primer::BaseComponent.new(**@system_arguments)) { content } end
def initialize(tag: DEFAULT_TAG, **system_arguments)
-
system_arguments
(Hash
) -- <%= link_to_system_arguments_docs %> -
tag
(Symbol
) -- <%= one_of(Primer::Beta::Markdown::TAG_OPTIONS) %>
def initialize(tag: DEFAULT_TAG, **system_arguments) @system_arguments = system_arguments @system_arguments[:tag] = fetch_or_fallback(TAG_OPTIONS, tag, DEFAULT_TAG) @system_arguments[:classes] = class_names( "markdown-body", system_arguments[:classes] ) end