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

Issue 781 markdown in tours #815

Merged
merged 3 commits into from
Apr 23, 2024
Merged

Issue 781 markdown in tours #815

merged 3 commits into from
Apr 23, 2024

Conversation

lentinj
Copy link
Collaborator

@lentinj lentinj commented Apr 23, 2024

Put tour window_text content through web2py's bundled markdown parser.

Enable safe_mode, so we at least don't allow raw HTML, but we will want to revisit this before allowing user generated content, as links (e.g.) would still be possible.

Fixes #781

lentinj added 3 commits April 23, 2024 10:56
If we don't have anything useful to say, we should just keep quiet.
The window_text class got lost at some point, put it back in.
Run all window_text through web2py's bundled markdown parser, wrapping
the instantiation so we can enable safe_mode.

This will mean all window_text content will be wrapped in <p>s, remove
the final margin to preserve previous spacing.
@lentinj lentinj merged commit c506e74 into main Apr 23, 2024
1 check passed
@lentinj lentinj deleted the issue-781-markdown-in-tours branch April 23, 2024 11:21
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.

Using markdown in tour text content
1 participant