diff options
author | 2023-05-11 14:24:12 -0500 | |
---|---|---|
committer | 2023-05-11 21:24:12 +0200 | |
commit | d0f7f5e2d89f96081a0e054959d26f446d086abc (patch) | |
tree | 74ed3a0bb3bdac2e1f43e8fcd535e21d0ab7824e /docs/06_Helper_functions/index.md | |
parent | e99e026fa8e88e54586837847eb23ca5683ddcb1 (diff) | |
download | rss-bridge-d0f7f5e2d89f96081a0e054959d26f446d086abc.tar.gz rss-bridge-d0f7f5e2d89f96081a0e054959d26f446d086abc.tar.zst rss-bridge-d0f7f5e2d89f96081a0e054959d26f446d086abc.zip |
[New Bridge] FiderBridge (#3378)
* [core] Add config parameter to markdownToHtml
* [FiderBridge] New bridge
Diffstat (limited to 'docs/06_Helper_functions/index.md')
-rw-r--r-- | docs/06_Helper_functions/index.md | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/06_Helper_functions/index.md b/docs/06_Helper_functions/index.md index 817241dd..2f0c513c 100644 --- a/docs/06_Helper_functions/index.md +++ b/docs/06_Helper_functions/index.md @@ -194,8 +194,20 @@ $cleaned = stripRecursiveHTMLSection($string, $tag_name, $tag_start); # markdownToHtml Converts markdown input to HTML using [Parsedown](https://parsedown.org/). +| Parameter | Type | Optional | Description +| --------- | ------ | ---------- | ---------- +| `string` | string | *required* | The URL of the contents to acquire +| `config` | array | *optional* | An array of Parsedown options in the format `['breaksEnabled' => true]` + +Valid options: +| Option | Default | Description +| --------------- | ------- | ----------- +| `breaksEnabled` | `false` | Enable automatic line breaks +| `markupEscaped` | `false` | Escape inline markup (HTML) +| `urlsLinked` | `true` | Automatically convert URLs to links + ```php -function markdownToHtml(string $string) : string +function markdownToHtml(string $string, array $config = []) : string ``` **Example** |