Go to preference
image.png
Change "editor preference" to "plain text area"
image.png
Turn on the "Edit Mode" and add an activity or resource, select page
image.png
Then, copy and paste the following code:
<link href="https://unpkg.com/editor.md/css/editormd.min.css" rel="stylesheet" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script src="https://unpkg.com/editor.md/editormd.min.js"></script> <div id="editor"> <textarea style="display: none;"></textarea> </div> <script type="text/javascript"> $(function () { var editor = editormd("editor", { width: "100%", height: "100%", path: "https://unpkg.com/editor.md/lib/" }); }); </script>