This is a quick demonstration of how to convert reMarkable files to Markdown from the command line. It doesn't work perfectly, leaving the formatting a little off, nor does it work for every file conversion it claims to support (on my system), however, since I personally only use the tablet to type and haven't needed to convert handwriting to svg or pdf it is good enough for me.
https://github.com/ricklupton/rmc