gl-website-deployer/vendor/doctrine/rst-parser/lib/LaTeX/Directives/LaTeXMain.php

31 lines
582 B
PHP
Raw Permalink Normal View History

2024-11-19 08:02:04 +01:00
<?php
declare(strict_types=1);
namespace Doctrine\RST\LaTeX\Directives;
use Doctrine\RST\Directives\Directive;
use Doctrine\RST\Nodes\Node;
use Doctrine\RST\Parser;
/**
* Marks the document as LaTeX main
*/
final class LaTeXMain extends Directive
{
public function getName(): string
{
return 'latex-main';
}
/** @param string[] $options */
public function processNode(
Parser $parser,
string $variable,
string $data,
array $options
): ?Node {
return $parser->getNodeFactory()->createMainNode();
}
}