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

Disable code fence #9

Open
bmuenzenmeyer opened this issue Aug 6, 2021 · 1 comment
Open

Disable code fence #9

bmuenzenmeyer opened this issue Aug 6, 2021 · 1 comment

Comments

@bmuenzenmeyer
Copy link
Contributor

Make it so the codeblock fence can be disabled. This allows importing of raw text (or other content) directly into files.

<!-- README.md -->

[Some readme content here]

# Contributing

<!--
  CODEBLOCK_START
  {
    "value": "CONTRIBUTING.md",
    "codeFence": false
  }
-->

[Some contributing content here]

<-- CODEBLOCK_END -->

I'm realizing now that this would probably require a CODEBLOCK_START_[name] to prevent recursion (importing actions which now run on both markdown files).

@10hendersonm
Copy link
Member

I'm realizing now that this would probably require a CODEBLOCK_START_[name] to prevent recursion (importing actions which now run on both markdown files).

Another idea that could get us partway: detect the presence of markdown-inject blocks in the resolved file and throw.

Or we could create a tree of .md files beforehand and walk up the tree, throwing if there are circular dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants