-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Custom code fence #555
base: main
Are you sure you want to change the base?
Custom code fence #555
Conversation
✅ Deploy Preview for pony-tutorial ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -37,6 +42,7 @@ plugins: | |||
raise_error_excludes: | |||
429: ["https://github.com/ponylang", "https://web.archive.org/*"] | |||
404: ["https://github.com/ponylang"] | |||
504: ["https://web.archive.org/*"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this appears unrelated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's temporary due to https://app.netlify.com/sites/pony-tutorial/deploys/66608a3635679b0008f1cff3#L152
🚧 Work in progress. Coming soon
Options
class
(constant:.ponylang
)snippet
: file name from./code-samples
(can optionally include line syntax after:
; seelines
) (see Snippets extension for details)dedent_subsections
:bool
(seededent_subsections
option of the Snippets extension for details)lines
: list of lines to includelines="1"
orlines="6"
)lines="1-3"
)lines="1,6,8"
)lines="1-3,6,8-10"
)runnable
:bool
Indicates whether the code block contains aMain
actor and doesn't result in an error unless intendedExamples
Example 1
hello-world-main.pony
from./code-samples
is included and content ("Gibberish"
) is discardedExample 2
classes-wombat.pony
from./code-samples
the lines 1 to 3 as well as 6 are included and content ("Lorem ipsum"
) is discardedExample 3
actor Main […]
) is displayed as is