mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-24 22:28:42 +02:00
[New Bridge] FiderBridge (#3378)
* [core] Add config parameter to markdownToHtml * [FiderBridge] New bridge
This commit is contained in:
parent
e99e026fa8
commit
d0f7f5e2d8
3 changed files with 158 additions and 2 deletions
|
@ -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**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue