mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
Merge branch '3.x' into 4.x
* 3.x: Fix wrong rounding_mode values #4677: Add use statements for classes referenced in the getOperators @psalm-return doc Update LeagueMarkdown.php
This commit is contained in:
@@ -60,9 +60,9 @@ The list of supported options:
|
||||
* ``floor``: Floor rounding
|
||||
* ``down``: Rounding towards zero
|
||||
* ``up``: Rounding away from zero
|
||||
* ``half_even``: Round halves to the nearest even integer
|
||||
* ``half_up``: Round halves up
|
||||
* ``half_down``: Round halves down
|
||||
* ``halfeven``: Round halves to the nearest even integer
|
||||
* ``halfup``: Round halves up
|
||||
* ``halfdown``: Round halves down
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
|
||||
@@ -12,13 +12,14 @@
|
||||
namespace Twig\Extra\Markdown;
|
||||
|
||||
use League\CommonMark\CommonMarkConverter;
|
||||
use League\CommonMark\MarkdownConverter;
|
||||
|
||||
class LeagueMarkdown implements MarkdownInterface
|
||||
{
|
||||
private $converter;
|
||||
private $legacySupport;
|
||||
|
||||
public function __construct(?CommonMarkConverter $converter = null)
|
||||
public function __construct(?MarkdownConverter $converter = null)
|
||||
{
|
||||
$this->converter = $converter ?: new CommonMarkConverter();
|
||||
$this->legacySupport = !method_exists($this->converter, 'convert');
|
||||
|
||||
Reference in New Issue
Block a user