Example: 5 Patterns for Callouts and Codeblocks in Callouts #57
aus10code
started this conversation in
Example Patterns
Replies: 1 comment
-
Thank you for sharing! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
5 Patterns for Callouts and Codeblocks in Callouts
Pattern 1: html tag
Code blocks inside of call outs aren't treated as code blocks in Source/Edit View. This has the unfortunate flaw of
<html>
tags nested in codeblocks inside of callouts being rendered as html.This pattern adds a
\
before any html tag that could cause an issue in the selected textPattern 2: html tag remove
Removes the
\
from any code block that has been formatted with Pattern 1 within the selected textPattern 3: Add >
Adds the
>
character to the beginning of selected text. Purpose is to create callouts more easilyPattern 4: Remove >
Removes the
>
character from the beginning of selected text. Purpose is dismantle callouts more easilyPattern 5: Add > Before Char
Purpose of this pattern is to aid in creating nested callouts inside of bulleted/numbered lists.
This pattern adds
>
after the lastTab
character at the beginning of every line in the selected text. I've attached a gif of it working in action and how to use it.To correctly use this pattern, you must tab(indent) the unformatted callout the desired amount of tab(indent) spaces for it to fit into the bulleted/numbered list and then apply the pattern.
JSON
Beta Was this translation helpful? Give feedback.
All reactions