Markdown Insert
Categories
Component ID
2271863
Component name
Markdown Insert
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
372
Component created
Component changed
Component body
Summary
This module alters the output of the Insert module to use Markdown syntax for image_image and file_generic widget types.
For image_image widget types, it also adds an optional link field to the widget, so you can have images link to other content via the UI.
Images
Without a link
Inserting an image with a "Title" and "Alt" field and clicking "Insert" will result in:

With a link
Inserting the same as above but with /path/to/file in the link field will result in:
[](/path/to/file "Optional Title")
Files
If the "Description" box is selected in the widget settings and is given a value, it will be the text for the link.
For example, [Description](/path/to/file).
Dependancies
- Markdown,
- Insert,
- Either the core file or image module enabled,
- A textarea with the markdown formating option enabled.
Installation
- Enable the module and selected dependancies as above,
- Create a file or image field on one of your entities,
- In the configuration page for the field, enable both the "Insert" and "Markdown Insert" checkboxes under the "Insert" drop down settings, and optionally the "Title" and "Alt" fields for images,
- Create or edit an instance of this entity, and upload a file or image,
- Enter the description, title, alt, and link fields as necessary,
- Choose the markdown-text-format-enabled area you would like the text to be inserted to and click on "Insert"
