benweet / stackedit

In-browser Markdown editor
https://stackedit.io/
Apache License 2.0
21.8k stars 2.73k forks source link

Max text length in StackEdit 5? #1208

Closed hautonjt closed 6 years ago

hautonjt commented 6 years ago

I've migrated a rather long document over from StackEdit 4 over to StackEdit 5, and I've been noticing that the text in the document is being cut off at exactly 150,000 characters. Is this a new undocumented character limit?

GAZ082 commented 6 years ago

I'm having an editor with this same limit!

benweet commented 6 years ago

There has to be a limit. Maybe 150,000 is not enough. What would you suggest ?

GAZ082 commented 6 years ago

1 MB? other editors seem not to have such small limitation.

hautonjt commented 6 years ago

I don't think having a limit is much of an issue; I just didn't expect the limit to have changed from StackEdit 4 to 5. If I didn't realize I had a backup I would have lost a significant amount of data. I don't know what the limit in StackEdit 4 is, but I think that StackEdit 5 should have the same limit as the previous version so that migrating over would not cause a loss of data.

Since the limit is too small for me right now, I'm running a local copy with the limit increased instead.

linquize commented 6 years ago

Do you already have a lot of markdown doc? localStorage has limit of around 5-10MB

benweet commented 6 years ago

Just increased it to 250KB. I don't think a text file would be more than that anyway.

atirut-w commented 3 years ago

I don't think a text file would be more than that anyway.

Surely you have never read Minetest's lua_api.txt. That thing is huge, nonsensically huge.

andreatu commented 3 years ago

Excuse me, I have just 2 observations:

  1. "I don't think a text file would be more than that anyway.". With all due respect, I disagree. I use some text file longer than that, using Geany, without any problem, with many advantages over adding different files when you hit the end of available space.
  2. A feature like that, even if acceptable, should be showed with great evidence and above all Stackedit should not cut your file without warning and SHORTEN IT IN GOOGLE DRIVE WITHOUT CONSENT! Unfortunately one of my files was shortened that way and I risked to loose a lot of work. Now I cannot use Stackedit - a very good app anyway. Thanks for your attention...