Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the rendered DOMs for custom elements whenever called browser script #305

Merged
merged 3 commits into from
Jun 5, 2022

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Jun 4, 2022

Related: marp-team/marp-vscode#360

applyCustomElements must be called whenever calling browser() to make auto scaling custom elements recognize correctly.

A return value of browser() is still a cleanup function but having developer-friendly interface now.

  • ret.cleanup(): Exactly same as ret().
  • ret.update(): Exactly same as browser(target), but it would make the intention for updating DOMs clear.

@yhatt yhatt merged commit 8da56f5 into main Jun 5, 2022
@yhatt yhatt deleted the improved-browser-interface branch June 5, 2022 13:02
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.

1 participant