ArticleDirectory
- Enable markdown
- Use the markdown editor in blog articles
- Experience markdown Editor
- Summary
- References
Orchard 1.3 was released not long ago. This version provides many new features, one of which is the addition of the markdown editor. Markdown is a lightweight markup language. You can use some simple syntax to express rich text content. (For more information about markdown, click here ). In orchard, I can use this editor to replace the original tinymce editor. For example, you can use this editor when adding blog articles or creating pages. The following describes how to use this editor.
To enable the markdown function, go to the orchard management background and click the modules menu. Enter "markdown" in the query conditions under the features tab to find the functions we want to use. (This function is also newly added in 1.3) find this function and click Enable.
In blog articles, the markdown editor uses the HTML editor (the tinymce Editor) by default. You can adjust this setting in the blog article type. First, go to the content menu in the background management, and select the content types tab to find the blog post type. Edit this type and set flavor to markdown in the body part. After saving it, we can see the markdown editor when we add or edit blog posts again. In body settings, we can use HTML, markdown, and text settings, which correspond to tinymce Editor, markdown editor, and textarea respectively.
Experience the markdown editor. After all the above work is completed, we can post a blog article to experience the functions of the markdown editor. As you can see, the markdown editor is very simple. Basic bold, italic, and image insertion functions are available. Small but enough. In addition, the function of inserting images is the same as that in the tinymce editor, so that images can be shared. By adding the markdown editor function, we can see that orchard supports multiple editor functions. In the future, we can also expand the UBB Editor, fck editor, and other useful editors.
Reference http://www.davidhayden.me/blog/orchard-1.3-features-markdown-support-for-pages-blog-posts-and-content-authoring