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 years ago
actions 6b0d4ec691 On/Off setting per-user 8 years ago
css 99b512ef0d Revert "[WIP] Per-notice markdown setting" 7 years ago
forms 6b0d4ec691 On/Off setting per-user 8 years ago
lib dd595c09dd Make compatible with newer GS 4 years ago
.gitignore 8540bf69e2 gitignore: Ignore vendor folder 9 years ago
LICENSE e27363d1a4 Add license 9 years ago
MarkdownPlugin.php dd595c09dd Make compatible with newer GS 4 years ago
README.md eea1d63faa readme: Add 'install' section 7 years ago
composer.json 33ef4b1ff9 Add GFM support via config.php 9 years ago
composer.lock 33ef4b1ff9 Add GFM support via config.php 9 years ago

README.md

Use Markdown in your GNU social notices

Installation

  1. Navigate to your /local/plugins directory (create it if it doesn't exist)
  2. git clone https://github.com/chimo/gs-markdown.git Markdown

Activate the feature for your user account

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.

Built-in markdown parser

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.

Github Flavored Markdown

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.