Preview link to draft post
See original GitHub issueGhost makes it extremely easy to preview markdown in real time, but what if we want more than that? For example, a user might want to add Mathjax support in the website and want to see the LaTeX code rendered on the preview pane as they are typing. This is currently not supported because the user needs to fiddle with file such as ghost/core/server/views/default.hbs
to make sure Mathjax can be loaded and they can see the preview. This is not practical in all scenarios, for example, some users don’t want to change the existing code in order to get the custom preview working.
So right now, a user has to “preview” the post by publishing it first and by manually loading it in the browser. What I am proposing is, why don’t we add a feature to Ghost that will let the preview to be rendered without publishing the post/page first? So users can preview their post (if they are logged in admin) by going to /preview/{post-slug}
. I think that would be nice. WordPress also has this feature and it’s quite nice to have it.
Issue Analytics
- State:
- Created 10 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
As a work around for this, I’ve added a condition on my post index in my theme to not render posts that have the tag
_preview
. That way I can publish it, it wont show up on the listing, and I can share it with anyone I give the url to. It works for now until this is added in.@alexparker : Works great, thank you.