You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Markdown field provides a WYSIWYG Markdown editor for its underlying Eloquent attribute. Typically, this field will correspond to a TEXT column in your database. The Markdown field will store the raw Markdown text within the associated database column:
By default, Markdown fields will not display their content when viewing a resource's detail page. Instead, the content will be hidden behind a "Show Content" link that will reveal the field's content when clicked. You may specify that the Markdown field should always display its content by calling the alwaysShow method on the field itself:
Markdown::make('Biography')->alwaysShow(),
The Markdown field uses the league/commonmark package to parse Markdown content. By default, it uses a parsing strategy similar to GitHub Flavoured Markdown, which does not allow certain HTML within the Markdown content. However, you can change the parsing strategy using the preset method. Currently, the following built-in presets are default, commonmark, and zero:
Being able to use markdown would just add clarity / ability to create better comments
nova-comments/src/Nova/Comment.php
Lines 47 to 49 in 3d18bb9
ref:
Markdown Field
The
Markdown
field provides a WYSIWYG Markdown editor for its underlying Eloquent attribute. Typically, this field will correspond to aTEXT
column in your database. TheMarkdown
field will store the raw Markdown text within the associated database column:By default, Markdown fields will not display their content when viewing a resource's detail page. Instead, the content will be hidden behind a "Show Content" link that will reveal the field's content when clicked. You may specify that the Markdown field should always display its content by calling the
alwaysShow
method on the field itself:The Markdown field uses the
league/commonmark
package to parse Markdown content. By default, it uses a parsing strategy similar to GitHub Flavoured Markdown, which does not allow certain HTML within the Markdown content. However, you can change the parsing strategy using thepreset
method. Currently, the following built-in presets aredefault
,commonmark
, andzero
:Using the
preset
method, you may register and use custom preset implementations:The text was updated successfully, but these errors were encountered: