|
|
|
https://docs.gitlab.com/ee/user/markdown.html
|
|
|
|
<br>
|
|
|
|
https://ru.wikipedia.org/wiki/Markdown
|
|
|
|
<br>
|
|
|
|
* https://www.google.com
|
|
|
|
* https://google.com/
|
|
|
|
* ftp://ftp.us.debian.org/debian/
|
|
|
|
* smb://foo/bar/baz
|
|
|
|
* irc://irc.freenode.net/gitlab
|
|
|
|
* http://localhost:3000
|
|
|
|
|
|
|
|
|
|
|
|
>>>
|
|
|
|
If you paste a message from somewhere else
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
var s = "JavaScript syntax highlighting";
|
|
|
|
alert(s);
|
|
|
|
```
|
|
|
|
|
|
|
|
```python
|
|
|
|
def function():
|
|
|
|
#indenting works just fine in the fenced code block
|
|
|
|
s = "Python syntax highlighting"
|
|
|
|
print s
|
|
|
|
```
|
|
|
|
|
|
|
|
```ruby
|
|
|
|
require 'redcarpet'
|
|
|
|
markdown = Redcarpet.new("Hello World!")
|
|
|
|
puts markdown.to_html
|
|
|
|
```
|
|
|
|
|
|
|
|
```c
|
|
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
if(argc!=2)
|
|
|
|
{
|
|
|
|
printf ("You forgot to type your name\n");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
printf("Hello %s", argv[1]);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
No language indicated, so no syntax highlighting.
|
|
|
|
s = "There is no highlighting for this."
|
|
|
|
But let's throw in a <b>tag</b>.
|
|
|
|
```
|
|
|
|
|
|
|
|
@user_name
|
|
|
|
@group_name
|
|
|
|
[README](doc/README)
|
|
|
|
[README](doc/README#L13)
|
|
|
|
|
|
|
|
# H1
|
|
|
|
## H2
|
|
|
|
### H3
|
|
|
|
#### H4
|
|
|
|
##### H5
|
|
|
|
###### H6
|
|
|
|
|
|
|
|
|
|
|
|
[I'm an inline-style link](https://www.google.com)
|
|
|
|
|
|
|
|
[I'm a reference-style link][Arbitrary case-insensitive reference text]
|
|
|
|
|
|
|
|
[I'm a relative reference to a repository file](LICENSE)
|
|
|
|
|
|
|
|
[I am an absolute reference within the repository](/doc/user/markdown.md)
|
|
|
|
|
|
|
|
[I link to the Milestones page](/../milestones)
|
|
|
|
|
|
|
|
[You can use numbers for reference-style link definitions][1]
|
|
|
|
|
|
|
|
Or leave it empty and use the [link text itself][]
|
|
|
|
|
|
|
|
Some text to show that the reference links can follow later.
|
|
|
|
|
|
|
|
[arbitrary case-insensitive reference text]: https://www.mozilla.org
|
|
|
|
[1]: http://slashdot.org
|
|
|
|
[link text itself]: https://www.reddit.com |
|
|
|
\ No newline at end of file |