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

Support markdown content in cards #162

Open
Greenheart opened this issue Aug 11, 2021 · 1 comment
Open

Support markdown content in cards #162

Greenheart opened this issue Aug 11, 2021 · 1 comment

Comments

@Greenheart
Copy link
Owner

Greenheart commented Aug 11, 2021

This component might help us solve this: https://github.com/pablo-abc/svelte-markdown

Then we could customize the renderers to output styled elements, and simply returning <slot/> for markdown formatting we don't want to support.

@Greenheart
Copy link
Owner Author

Benefits

  • Adding clickable links would allow scenarios to create a learning experience, where you can introduce concepts and link to resources for more in-depth info. This might unlock new use cases for the game and the engine.
  • Possibility to add emphasis like italic and bold text. Could be abused, but could also be a nice touch if used well.

Drawbacks

  • Slightly increased complexity of the project, more moving parts to maintain
  • Slightly larger frontend app bundle size (though barely not any noticeable impact on performance)

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

No branches or pull requests

1 participant