I use HedgeDoc extensively in my undergrad and post-grad courses and in our hackerspace, as told in a previous post. And while I don’t use/like Moodle in particular or the general concept of a LMS in general, we integrate HedgeDoc to our formal and informal learning practices/environments by connecting it to external systems like mdBook and Hypothesis, using our software to support customized workflows. You can see the interactive notebook where we are documenting (in Spanish) the export of HedgeDocs collections as an mdBook publication in Fossil, which allow us to use Hypothesis for commenting snapshots of our documents.
Approaches like the previous one allows to “connect” the output of HedgeDoc to other platforms, while the 2.0x version is out.
Hope that helps and let me know if you need more details.
Offray