Skip to content

Comments

Desktop: Move ABC rendering from plugin to main app#13599

Merged
laurent22 merged 7 commits intodevfrom
abc
Nov 15, 2025
Merged

Desktop: Move ABC rendering from plugin to main app#13599
laurent22 merged 7 commits intodevfrom
abc

Conversation

@laurent22
Copy link
Owner

@laurent22 laurent22 commented Nov 1, 2025

This will allow rendering sheet music in published notes. I thought it would be straightforward but I see that the plugin settings would have to be migrated to do this properly.

Todo

  • Migrate global settings - plugin-org.joplinapp.plugins.AbcSheetMusic.options
  • Move plugin documentation to Joplin main doc
  • Add tests
  • Add setting to toggle rendering on and off
  • Test on published notes
  • Automatically disable plugin

document.body.appendChild(element);
const parsed = parseAbcContent(token.content);
abcjs.renderAbc(elementId, parsed.markup, { ...globalOptions, ...parsed.options });
html = `<div class="abc-notation-block">${element.innerHTML}</div>`;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note/non-blocking: At some point, it may make sense to update this to support the Rich Text Editor. To do this, some metadata might need to be added here.

!f!(fgag-g2c2)|
```

`<!-- cSpell:enable -->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`<!-- cSpell:enable -->
<!-- cSpell:enable -->

@laurent22 laurent22 merged commit 3dca349 into dev Nov 15, 2025
21 checks passed
@laurent22 laurent22 deleted the abc branch November 15, 2025 09:11
@personalizedrefrigerator
Copy link
Collaborator

Thank you for implementing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants