-
Notifications
You must be signed in to change notification settings - Fork 96
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
Thoughts about adapting a WYSIWYG editor to work with Cryogen #266
Comments
I think adding support for json metadata would be fine. It could just be another config option. And using Zettlr compatible keys for json config seems like a decent way to go. It sounds like it should be a fairly small change overall. |
Right, I'll get started on that. |
OK, completely baffled. Where do the instantiations of Context: I need to pass a Markup (for markdown) with a working render function into a test, in order to test that I can render a file with metadata correctly. |
oh that's implemented in the libraries using https://github.com/cryogen-project/cryogen-markdown/blob/master/src/cryogen_markdown/core.clj |
OK, I have tests which pass TODAY, but because the tests do Expect a pull request tomorrow or Wednesday. |
Context
I'm setting up a website for an activist group most of whom are not geeks, and I need to make it as simple as possible for them to use.
Issue
Cryogen uses embedded EDN-formatted metadata at the beginning of Markdown files; existing WYSIWYG markdown editors don't recognise this, and Typora, the editor which I have been up to now actively using and recommending, inserts unneeded blank lines which, although they don't actually do harm, annoy my autistic soul and are distracting.
My initial approach to dealing with this problem was to implement metadata inference, which I've done and which has been merged into the current release and which works well for my personal blog, and for any site which has only one author.
However, where there are multiple authors, the author of each article will be shown as the last person to have executed
lein run
, which, in this case, will usually be a post-push git hook. I need to capture (at least) the actual author identity as metadata. The ability to have a:draft?
boolean as metadata is also a very good one, and, actually, once you've accepted the idea that you need metadata you might as well have a full, extensible, suite of metadata.Sidenote
Zettlr, a GPL licensed Markdown editor, uses embedded JSON metadata in a very similar way to Cryogen's embedded EDN metadata, and handles it well.
Proposed solutions
cryogen-core.compiler/using-embedded-metadata
so that it recognises and reads either EDN formatted or JSON formatted metadata, and have the users use Zettlr;Relatedly, I am thinking of altering
cryogen-core.infer-meta/infer-meta
so that, having inferred metadata, it writes that metadata back to the file.Thoughts, apart from the obvious "Simon, for heaven's sake, just get over yourself"?
The text was updated successfully, but these errors were encountered: