Skip to content

Auto-playground links that can partially hide code #21

Description

@conectado

Sometimes for examples it'd be useful to write code and auto-create a playground link like I'm actually doing but hide some part of the code.

This needs to be seamless like what I'm doing now otherwise it'd be very awkward for writing long articles so something like

###rs
<hidden code>
\`\`\`rs
displayed code
\`\`\`
<hidden code>
###

would be ideal (backslash meant to be interpreted literally)

the problem right now I've no idea how zola even processes the markdown and I'm using shortcode to insert playground links.

Steps would be

  • Investigate how Zola is doing this
  • Investigate if there's a solution already written
  • Be sad and write this myself :(

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions