Skip to content
New issue

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

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

Already on GitHub? # to your account

[WIP/Proof] code preview button in QR #3368

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

saxamaphone69
Copy link
Collaborator

Okay, not actually working because I'm missing something, but figure it's a good starting point if someone else wants to pick it up.

The current issues are:

  • trying to get prettyPrintOne to run on the #code-preview element. When you run it in console, it returns the prettified HTML
  • I think it needs to strip the [code] and [/code] tags upon preview, as at this point they are included
  • There probably needs to be some way to convert "hey [code]code[/code] this is [code]function() { cool; }[/code]" correctly (in that again, only the text within the code tags is rendered within the existing prettyprint and prettyprinted classes

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant