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

Read and write offline #51

Open
4 tasks
cben opened this issue Jun 23, 2014 · 5 comments
Open
4 tasks

Read and write offline #51

cben opened this issue Jun 23, 2014 · 5 comments

Comments

@cben
Copy link
Owner

cben commented Jun 23, 2014

  • A way to even open cached mathdown when you're offline.
    Look into app manifest / chrome extension / firefox OS app?
  • Cache last seen content of every document in localStorage.
    Bonus if having any mathdown open does background updating on all known docs.
  • Be able to edit offline and sync on reconnect.
  • index.html?doc=... prevents caching of index.html for new documents.
    history.pushState() might help, assuming you have one tab open.
@victorel-petrovich
Copy link

That would be great!
How about an offline-capable chrome app or extension that would be able work directly with local ("harddisk") files? Or at least be able to open and save as such

@cben
Copy link
Owner Author

cben commented Mar 1, 2015

Yay, somebody actually uses mathdown! :-) [BTW, I'd love any and all feedback]

I must admit this is not high on my radar, especially not working with local files.
You can always copy/paste to/from a local file but that's awkward and doesn't play nice with online changes by others.
Right now you're better off with:

  • Stackedit.io is probably best in-browser markdown editor with multiple storage options. There is offline chrome app. Supports $inline$ and $$display$$ math syntax.
  • Overleaf.com (former WriteLaTeX) has in-place math rendering like I do (but theirs is less buggy ;-)) in "Rich Text" mode. It's full latex rather than markdown, but the Rich Text mode makes it feel half-way to a lightweight format. While the site doesn't work offline, you can git clone a project and work locally in your latex editor of choice...

@victorel-petrovich
Copy link

Thanks for your detailed answer.
For now, I am interested in just a local, offline chrome app. I am trying stackedit at present (the git clone a project you recommend is, well, a bit advanced stuff for me..)

Compared to stackedit, I like better your stronger emphasis on WYSIWYM inside the editor (i.e,, as per initial Markdown philosophy, it should be as readable as the output). Plus, who knows if and when stackedit will implement such in-place math rendering.

By the way, the best math/document editor I ever used is LYX. Maybe you can draw some inspiration from there :). (Unfortunately, it's not available for CromeOS, like on my chromebook)

Good luck!

@cben
Copy link
Owner Author

cben commented Apr 19, 2015

I've now read http://alistapart.com/article/application-cache-is-a-douchebag, and must re-read it carefully if I get around to adding an app cache manifest. [Also, should ask for advice in Firebase/pad group!]
My current (incomplete) understanding is:

  • I'll need app cache manifest for loading mathdown.net at all when offline.
  • By default manifest-cached pages won't be able to access Firebase — even when online! — but it's fixable.
  • Anyway can't cache firebase data via manifest, so also need local storage for firepad content.
    • There is a chance that given Spiderable documents (content in HTTP response) #7, I can take the text served as part of the page (which is manifest-cached) as the fallback content, and not need local storage. But I'd rather trust local storage than app cache semantics...
  • The manifest can be configured to supply even ?doc=previouslyUnseen (via fallback mechanism). Nice.
  • I'll want to switch to versioned URLs for all static content (see discussion on Caching headers #74).
  • There be dragons...

@cben
Copy link
Owner Author

cben commented Dec 17, 2022

Given very limited time for mathdown (#172), I'm very unlikely to work on this.

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