GNU social Markdown plugin from https://code.chromic.org/chimo/gs-markdown https://github.com/chimo/gs-markdown/
Chimo dd595c09dd Make compatible with newer GS | преди 4 години | |
---|---|---|
actions | преди 8 години | |
css | преди 7 години | |
forms | преди 8 години | |
lib | преди 4 години | |
.gitignore | преди 9 години | |
LICENSE | преди 9 години | |
MarkdownPlugin.php | преди 4 години | |
README.md | преди 7 години | |
composer.json | преди 9 години | |
composer.lock | преди 9 години |
/local/plugins
directory (create it if it doesn't exist)git clone https://github.com/chimo/gs-markdown.git Markdown
Because the markdown plugin changes the way notices are rendered significantly, it is disabled by default.
Users can activate the plugin for their account in the "Settings > Markdown" section.
Make sure the files are in a folder called Markdown
if they're not already
Put the folder in your /plugins/
directory
Tell /config.php
to use it with:
addPlugin('Markdown');
You can now use markdown syntax in your notices.
If you want to use Github Flavored Markdown
instead of the built-in markdown library, run composer install
in the plugin directory (assuming you have
composer installed).
And tell the plugin to use GFM by using the following in your /config.php
:
addPlugin('Markdown', array('parser' => 'gfm'));
You can now use GFM syntax in your notices.