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

Enable and document how to render MyST as part of other applications or as a standalone component #1698

Open
choldgraf opened this issue Dec 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@choldgraf
Copy link
Collaborator

As part of the frx-challenges project, we wanted a way for data challenge administrators to write MyST Markdown for basic formatting of pages served via a Django app. We wanted a way of quickly rendering MyST and output nice HTML, but without the full-blown MyST document engine provided via the CLI.

However, we couldn't figure out how to do this easily. It would be helpful if this were more clearly documented, or enabled if it isn't possible.

Examples for inspiration

For example, we wanted something similar to how JupyterLab-MyST renders "snippets" of MyST markdown with basic MyST functionality, but not everything).

Another workflow we wanted was something similar to markdown-it. In that case, you can render HTML from markdown-it markdown like so:

import markdownit from 'markdown-it'
const md = markdownit()
const result = md.render('# markdown-it rulezz!');
@choldgraf choldgraf added the enhancement New feature or request label Dec 11, 2024
@yuvipanda
Copy link

The sample snippet covers what i'd have liked pretty well! Take string of markdown (+ possible options), return HTML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants