I'm having a hard time finding any real answer to this (really simple?) question on Google, and I'm starting to worry that there is no solution.
I am learning GitHub markdown. I would like to show some example code that contains fake email address like [email protected]
. But GitHub insists on auto-linking this text. I also have a large chunk of text that has many special characters.
Is there a way to escape blocks or sections so that no special characters are processed, and no auto-links are generated?
Headings. To create a heading, add number signs ( # ) in front of a word or phrase. The number of number signs you use should correspond to the heading level. For example, to create a heading level three ( <h3> ), use three number signs (e.g., ### My Header ).
Here are the basics: Italics: Add one asterisk or underscore around your text *like this* or _this_ Bold: Add two asterisks or underscores around your text **like this** or __this__ Bold and Italic: Add three asterisks or underscores around your text ***like this*** or ___this___
You can also create a Markdown hyperlink by highlighting the text and using the keyboard shortcut Command + V .
The basic Markdown syntax allows you to create code blocks by indenting lines by four spaces or one tab. If you find that inconvenient, try using fenced code blocks. Depending on your Markdown processor or editor, you'll use three backticks ( ``` ) or three tildes ( ~~~ ) on the lines before and after the code block.
Wrap the block in backticks:
```text
code();
[email protected]
```
You can wrap such text in pre tags.
<pre>Text I want left [email protected]</pre>
I just tested this out on github.
This is all part of the kramdown syntax. The last link shows every GitHub markdown trick.
So this will work also:
~~~text
code();
[email protected]
~~~
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With