You are here

public function MarkdownParserInterface::parsePath in Markdown 3.0.x

Parses markdown from a local file into HTML.

Parameters

string $path: A filesystem path of a markdown file to parse.

\Drupal\Core\Language\LanguageInterface $language: Optional. The language of the markdown that is being parsed.

Return value

\Drupal\markdown\ParsedMarkdownInterface A ParsedMarkdownInterface object.

Throws

\Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException When the provided $path does not exist in the local file system.

1 method overrides MarkdownParserInterface::parsePath()
BaseParser::parsePath in src/Plugin/Markdown/BaseParser.php
Parses markdown from a local file into HTML.

File

src/Plugin/Markdown/MarkdownParserInterface.php, line 163

Class

MarkdownParserInterface
Interface MarkdownInterface.

Namespace

Drupal\markdown\Plugin\Markdown

Code

public function parsePath($path, LanguageInterface $language = NULL);