@hyperbook/markdown 0.25.3 → 0.25.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -745,9 +745,12 @@ class GeogebraElement extends HTMLElement {
745
745
  app.registerClientListener((detail) => {
746
746
  this.dispatchEvent(new CustomEvent(detail.type, { detail: detail }));
747
747
  });
748
- app.registerClearListener(() =>
749
- this.dispatchEvent(new CustomEvent("clear")),
750
- );
748
+ app.registerClearListener(() => {
749
+ if (this.init_commands) {
750
+ app.evalCommand(this.init_commands);
751
+ }
752
+ this.dispatchEvent(new CustomEvent("clear"));
753
+ });
751
754
  const other_events = ["Add", "Click", "Remove", "Rename", "Update"];
752
755
  other_events.forEach((event_name) => {
753
756
  app[`register${event_name}Listener`]((name) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbook/markdown",
3
- "version": "0.25.3",
3
+ "version": "0.25.4",
4
4
  "author": "Mike Barkmin",
5
5
  "homepage": "https://github.com/openpatch/hyperbook#readme",
6
6
  "license": "MIT",