humdrum-tools / verovio-humdrum-viewer

Verovio Humdrum Viewer
http://verovio.humdrum.org
37 stars 9 forks source link

Saving HTML improvement #807

Open craigsapp opened 1 year ago

craigsapp commented 1 year ago

When saving HTML file with embedded score, there is an HTML comment inside of a script which should be moved outside of the script:

Screen Shot 2023-04-06 at 11 28 30
<html>
<head>
<title>My Score</title>
<script src="https://plugin.humdrum.org/scripts/humdrum-notation-plugin-worker.js"></script>
</head>
<body>
<script>
   displayHumdrum({
      source: "my-score",
      autoResize: "true",
      header: "true"
   });
<!-- See https://plugin.humdrum.org/#options for more display options -->
</script>

<script type="text/x-humdrum" id="my-score">
**kern
*M4/4
=1
1c
=
*-
</script>

</body>
</html>

Somehow it does not cause a problem, but should be moved anyway.