Several places on the site allow adding rich text -- text that has formating, styling, and other helpful markup.
This is currently enabled for:
- Problem comments
- Problem intro
More places will get enabled over time.
The formating is based on Markdown with the addition of some custom markup especially useful for goproblems.
Examples
"A **bold** new feature" gets shown as "A bold new feature".
Using several features for a problem comment:
This is a nice way for one problem to refer to another problem. See example: problem 437
How to Use It
Simply start typing in any of the above listed supported places, and when you enter any text that parses as Markdown, a preview box will automatically open under where you are typing, showing you what the formatted output will look like.
Custom Markup
These are the ways Markdown has been extended custom to this site.
Problem Link
[p#{id}]
links directly to a problem
User Link
@{username}
to link to a user. Note: you have to check it's spelled correctly in the current implementation.
Linking to a Problem Collection
[c#{id}]
links to a problem collection
Linking to Sensei's Library
Sensei's Library is a great resource for go knowledge. Linking here can save time explaining the same concepts over and over on this site. For example, how a double ko works.
[senseis:{title}]
makes the link
Info Article
You may link to an article (such as this one)
[info:{name}]
links but doesn't check it exists
Board Diagram
You may draw an arbitrary go board with a custom sgf tag:
[diagram:sgf={sgf} {optional params}]
creates the image
Current supported optional params:
- labels, example:
labels=[pd:@]
- path, example coming soon
- number, example coming soon