mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-27 21:48:41 +02:00
misc: prettier
This commit is contained in:
parent
61c917fd8f
commit
7d792840ba
1 changed files with 2 additions and 2 deletions
|
@ -197,9 +197,9 @@ export function parse(
|
|||
const options: {} = {
|
||||
excerpt: (file: matter.GrayMatterFile<string>): void => {
|
||||
let fileContent = file.content.trimLeft();
|
||||
|
||||
|
||||
// Hacky way of stripping out import statements from the excerpt
|
||||
// TODO: Find a better way to do so, possibly by compiling the Markdown content,
|
||||
// TODO: Find a better way to do so, possibly by compiling the Markdown content,
|
||||
// stripping out HTML tags and obtaining the first line.
|
||||
if (RegExp(importRegexString).test(fileContent)) {
|
||||
fileContent = fileContent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue