]>
Commit | Line | Data |
---|---|---|
14563582 A |
1 | ## Markdown Shaarli plugin |
2 | ||
3 | Convert all your shaares description to HTML formatted Markdown. | |
4 | ||
340252ae A |
5 | [Read more about Markdown syntax](http://daringfireball.net/projects/markdown/syntax). |
6 | ||
7 | Markdown processing is done with [Parsedown library](https://github.com/erusev/parsedown). | |
14563582 A |
8 | |
9 | ### Installation | |
10 | ||
340252ae A |
11 | As a default plugin, it should already be in `tpl/plugins/` directory. |
12 | If not, download and unpack it there. | |
13 | ||
14563582 A |
14 | The directory structure should look like: |
15 | ||
16 | ``` | |
340252ae A |
17 | --- plugins |
18 | |--- markdown | |
19 | |--- help.html | |
20 | |--- markdown.css | |
21 | |--- markdown.meta | |
22 | |--- markdown.php | |
23 | |--- Parsedown.php | |
24 | |--- README.md | |
14563582 A |
25 | ``` |
26 | ||
340252ae A |
27 | To enable the plugin, just check it in the plugin administration page. |
28 | ||
29 | You can also add `markdown` to your list of enabled plugins in `data/config.php` | |
14563582 A |
30 | (`ENABLED_PLUGINS` array). |
31 | ||
32 | This should look like: | |
33 | ||
34 | ``` | |
35 | $GLOBALS['config']['ENABLED_PLUGINS'] = array('qrcode', 'any_other_plugin', 'markdown') | |
36 | ``` | |
37 | ||
340252ae A |
38 | ### No Markdown tag |
39 | ||
40 | If the tag `.nomarkdown` is set for a shaare, it won't be converted to Markdown syntax. | |
41 | ||
42 | > Note: it's a private tag (leading dot), so it won't be displayed to visitors. | |
43 | ||
14563582 A |
44 | ### Known issue |
45 | ||
46 | #### Redirector | |
47 | ||
48 | If you're using a redirector, you *need* to add a space after a link, | |
49 | otherwise the rest of the line will be `urlencode`. | |
50 | ||
51 | ``` | |
52 | [link](http://domain.tld)-->test | |
53 | ``` | |
54 | ||
55 | Will consider `http://domain.tld)-->test` as URL. | |
56 | ||
57 | Instead, add an additional space. | |
58 | ||
59 | ``` | |
60 | [link](http://domain.tld) -->test | |
61 | ``` | |
62 | ||
63 | > Won't fix because a `)` is a valid part of an URL. |