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

Generate raw zettel if it fails to parse #215

Closed
srid opened this issue Jun 3, 2020 · 0 comments · Fixed by #221
Closed

Generate raw zettel if it fails to parse #215

srid opened this issue Jun 3, 2020 · 0 comments · Fixed by #221
Assignees

Comments

@srid
Copy link
Owner

srid commented Jun 3, 2020

Currently if a zettel fails to parse (invalid markdown, or bad yaml), we skip HTML generation of it, and report it in the z-index. This is problematic in two ways:

  • All zettels linking to this failing zettel will now show up in the z-index error report because they now link to a "non-existing" zettel (though this is in fact false; the zettel only fails to parse, but it actually exists).
  • Its old HTML would still be lying around. And if the zettelkasten is publicly hosted, the outdated version would continue to be accessible in search engine index.

One solution is to generate the HTML anyway, but put the whole (unparsed) markdown text inside a <pre> block, along with rendering the parse error above it.

@srid srid self-assigned this Jun 9, 2020
@srid srid closed this as completed in #221 Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant