mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
docs: more Markdown stuff #411
This commit is contained in:
parent
ccb26cf7c5
commit
f0930cd78f
1 changed files with 18 additions and 2 deletions
|
@ -435,7 +435,7 @@ Blockquotes can also be nested.
|
||||||
|
|
||||||
### Autolink
|
### Autolink
|
||||||
|
|
||||||
In GFM (GitHub Flavored Markdown) an absolute URLs will automatically be converted into a link.
|
In GFM (GitHub Flavored Markdown) absolute URLs will automatically be converted into a link.
|
||||||
|
|
||||||
````markdown
|
````markdown
|
||||||
This is a link to https://example.com.
|
This is a link to https://example.com.
|
||||||
|
@ -470,6 +470,22 @@ For even further information, you can add an additional text, displayed in a too
|
||||||
[Upstage](https://github.com/upstage/ "Visit Upstage!")
|
[Upstage](https://github.com/upstage/ "Visit Upstage!")
|
||||||
{{% /notice %}}
|
{{% /notice %}}
|
||||||
|
|
||||||
|
### Link References
|
||||||
|
|
||||||
|
Links can be simplyfied for recurring reuse by using a reference ID to later define the URL location. This simplyfies writing if you want to use a link more than once in a document.
|
||||||
|
|
||||||
|
````markdown
|
||||||
|
[Example][somelinkID]
|
||||||
|
|
||||||
|
[somelinkID]: https://example.com "Go to example domain"
|
||||||
|
````
|
||||||
|
|
||||||
|
{{% notice style="secondary" icon="eye" title="Result" %}}
|
||||||
|
[Example][somelinkID]
|
||||||
|
|
||||||
|
[somelinkID]: https://example.com "Go to example domain"
|
||||||
|
{{% /notice %}}
|
||||||
|
|
||||||
### Footnotes
|
### Footnotes
|
||||||
|
|
||||||
Footnotes work mostly like reference-style links. A footnote is made of two things, a marker in the text that will become a superscript number and a footnote definition that will be placed in a list of footnotes.
|
Footnotes work mostly like reference-style links. A footnote is made of two things, a marker in the text that will become a superscript number and a footnote definition that will be placed in a list of footnotes.
|
||||||
|
@ -518,7 +534,7 @@ Images have a similar syntax to links but include a preceding exclamation mark.
|
||||||
![Spock](https://octodex.github.com/images/spocktocat.png?width=20vw&classes=bg-white)
|
![Spock](https://octodex.github.com/images/spocktocat.png?width=20vw&classes=bg-white)
|
||||||
{{% /notice %}}
|
{{% /notice %}}
|
||||||
|
|
||||||
### Images with Tooltip
|
### Image with Tooltip
|
||||||
|
|
||||||
Like links, images can also be given a tooltip.
|
Like links, images can also be given a tooltip.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue