Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/kishanjasani/comment-preview/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Comment Preview
The plugin will show real comment previews to the users
Maintainer
| Name | Github Username |
|--------------------------------------------------------|-----------------|
| Kishan Jasani | @kishanjasani |
Requirements
PHP Requires: 7.0
WordPress Requires at least: 4.7
Jetpack Plugin to Render proper markupp
Steps to configure this plugin in your site:
Activate jetpack's markdown for comments settings.
Activate comment preview plugin.
Comment form.
Want to add markdown support for your custom post type?
You can use commentpreviewallowedposttypes filter to add ustom post type support.
Ex:
NOTE: This plugin works with WordPress's default comment form only.
Available Endpoint
Convert Markdown comment to readable format ( POST request )
- http://example.com/wp-json/commentpreview/v1/preview
- Params:
- comment - Comment text.
- format - Whether to preview markdown or plain text - Two values it will take plain OR markdown.
- author - For non-logged in user you can send author's name here, logged-in users will automatically get their name in that comment.
Contributing
During development
Cl