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

Is there an available/recommended way to present read-only views of markdown? #996

Open
csuwildcat opened this issue Dec 19, 2024 · 4 comments

Comments

@csuwildcat
Copy link

I have already integrated the editor into a project to allow markdown entry of text, but I am wondering if there exist in the package methods or conventions for using the same renderer the editor uses to then display the same visual output when viewing in a read-only state? Is this a lib method one can call with a rich text widget as a target, or some other thing I can/should do when rendering views with markdown text?

@csuwildcat csuwildcat changed the title Is there a available/recommended way to present read-only views of markdown? Is there an available/recommended way to present read-only views of markdown? Dec 19, 2024
@LucasXu0
Copy link
Collaborator

Hi, @csuwildcat. Is this what you want?

Screenshot 2024-12-20 at 10 13 44

@csuwildcat
Copy link
Author

If you're referring to the left panel being a read only output, yeah, basically, just looking for the best way to use the lib to simply render a markdown text to a static element, not editable or modifiable, just the view output of the render.

@csuwildcat
Copy link
Author

Is there either a utility method or config value for instances of the editor to take in a source and just render the markdown without making it an active editor?

@csuwildcat
Copy link
Author

I see here you replied to someone alluding to an editable feature that can been flagged off: #814 (comment)

How does this work?

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

2 participants