Comment Preview
The plugin will show real comment previews to the users
by Kishan Jasani · github.com/kishanjasani/comment-preview · website
★ 2stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/kishanjasani/comment-preview/archive/refs/heads/main.zipFrom the readme
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