I've noticed that I can pull HTML from the clipboard as a value, which is easier than working with files. A value can be obtained through a simple await call. However, it seems that Markdown is only available as a file. This then requires passing a callback, checking the "progress" response for null, reading the data from the eventually returned file, and also handling a possible error condition.
I'd much rather access Markdown the same as HTML, and nominally, it seems like you should be able to do that.
I've noticed that I can pull HTML from the clipboard as a value, which is easier than working with files. A value can be obtained through a simple
awaitcall. However, it seems that Markdown is only available as a file. This then requires passing a callback, checking the "progress" response fornull, reading the data from the eventually returned file, and also handling a possible error condition.I'd much rather access Markdown the same as HTML, and nominally, it seems like you should be able to do that.