Skip to content

Markdown include not stripping YAML front matter #1129

Closed
@sytone

Description

@sytone

Bug Report

Steps to reproduce

  1. Create a Markdown Page to view
  2. Create a markdown page to include with a YAML header.
  3. Add a link with the include tag to the page.
  4. View the markdown page with the link and when the link I parsed the YAML header is also pulled through and rendered as markdown putting a line on the page followed by the YAML header information as test and then another line.

What is current behaviour

When the link I parsed the YAML header is also pulled through and rendered as markdown putting a line on the page followed by the YAML header information as test and then another line.

What is the expected behaviour

The markdown is rendered from the include should only have the markdown rendered and not the YAML front matter.

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS: Windows

  • Node.js version: NA

  • npm/yarn version: NA

  • Browser version: Edge and Chrome latest

  • Docsify version: Latest (4.11.3)

  • Docsify plugins: None

Please create a reproducible sandbox

Edit 307qqv236

Mention the docsify version in which this bug was not present (if any)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions