Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including markdown prints frontmatter literally #3195

Closed
4 tasks done
nimonian opened this issue Nov 7, 2023 · 0 comments
Closed
4 tasks done

Including markdown prints frontmatter literally #3195

nimonian opened this issue Nov 7, 2023 · 0 comments
Labels
bug Something isn't working build Related to the build system

Comments

@nimonian
Copy link
Contributor

nimonian commented Nov 7, 2023

Describe the bug

When including b.md inside a.md, the frontmatter of b.md is included literally.

Reproduction

Create the file a.md:

---
title: A
---

This is the a.md file

<!--@include: ./b.md-->

Now create the file b.md:

---
title: B
---

This is the b.md file

The resulting HTML looks like this:

<p>This is the a.md file</p>

<h2>
title: B
</h2>

<p>This is the b.md file</p>

Expected behavior

The frontmatter in the included file (b.md) should be ignored.

System Info

System:
    OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (8) x64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
    Memory: 9.96 GB / 15.49 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.5.1 - /usr/bin/node
    npm: 9.6.6 - ~/node_modules/.bin/npm
  Browsers:
    Chromium: 119.0.6045.105

Additional context

No response

Validations

@nimonian nimonian added the bug: pending triage Maybe a bug, waiting for confirmation label Nov 7, 2023
@brc-dd brc-dd added bug Something isn't working build Related to the build system and removed bug: pending triage Maybe a bug, waiting for confirmation labels Nov 7, 2023
@brc-dd brc-dd closed this as completed in dbbffa2 Nov 11, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working build Related to the build system
Projects
None yet
Development

No branches or pull requests

2 participants