Markwon icon indicating copy to clipboard operation
Markwon copied to clipboard

Saving markdown after mutating task list

Open damionx7 opened this issue 4 years ago • 2 comments

  • Markwon version: v4.6.2

How can we save the markdown file after mutating task list using this sample code

damionx7 avatar Aug 27 '21 02:08 damionx7

Hello @damionx7 ,

markdown is parsed one-way, so after it is parsed the input is not longer referenced. So there is no way to rebuild raw markdown from the data displayed in a TextView. You could maintain own datastore for tasks and identify them by raw text. But this would mean that markdown is dynamically generated from this datastore, which might not be optimal

noties avatar Dec 07 '21 23:12 noties

@noties Hi !Do you mean,I can not parse EditText.getText()to Markdown-Format String?The text style in EditText is formated by some Spanned.

KavenSu avatar Jul 19 '23 12:07 KavenSu