Skip to content

[gatsby-plugin-remark] Get the whole content without HTML and Markdown #5357

@Destroy666x

Description

@Destroy666x

Summary

As the title says, I see no way to get Markdown content without HTML or Markdown (including frontmatter), I didn't find a custom plugin for that either. I guess you could use excerpt with an enormous value, but that's counterintuitive.

Basic example

internal {
  content
}

returns the whole Markdown structure including frontmatter.

html on the other hand returns HTML version of it without frontmatter.

Motivation

It supports cases such as getting content ready for e.g. indexing for search or RSS in a understandable (not "Why are you getting an excerpt with 999999 size there?") way without the need of postprocessing with JS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssue with a clear description that the community can help with.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions