Skip to content

Commit

Permalink
upd markdown.md - folded text
Browse files Browse the repository at this point in the history
  • Loading branch information
halyph committed Nov 10, 2023
1 parent 19412bb commit f652dbf
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 5 deletions.
58 changes: 57 additions & 1 deletion docs/wiki/howtos/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,66 @@ tags:

# Markdown

## README samples

- [stkeky/best-of-scala](https://github.com/stkeky/best-of-scala/blob/main/README.md) A ranked list of awesome Scala projects. It is based on [best-of-lists/best-of-generator](https://github.com/best-of-lists/best-of-generator).

## Basic syntax

See [Markdown Guide](https://www.markdownguide.org/basic-syntax/#code).

## Folded text

````
```markdown
<details>
<summary>
<b><a href="https://github.com/sbt/sbt">sbt</a></b> (🥇33 · ⭐ 4.7K) - sbt, the interactive build tool.
<code>
<a href="http://bit.ly/3nYMfla">Apache-2</a>
</code>
<code>
[MIT](http://bit.ly/34MBwT8)
</code>
<code>
<img src="https://scalac.io/wp-content/uploads/2021/02/image-125-1.svg" style="display:inline;" width="13" height="13">
</code>
</summary>
- [GitHub](https://github.com/sbt/sbt) (👨‍💻 410 · 🔀 920 · 📥 12M · 📋 4.1K - 18% open · ⏱️ 02.11.2023):
```
git clone https://github.com/sbt/sbt
```
</details>
```
````

!!! example

<div class="result">
<details>
<summary>
<b><a href="https://github.com/sbt/sbt">sbt</a></b> (🥇33 · ⭐ 4.7K) - sbt, the interactive build tool.
<code>
<a href="http://bit.ly/3nYMfla">Apache-2</a>
</code>
<code>
[MIT](http://bit.ly/34MBwT8)
</code>
<code>
<img src="https://scalac.io/wp-content/uploads/2021/02/image-125-1.svg" style="display:inline;" width="13" height="13">
</code>
</summary>

- [GitHub](https://github.com/sbt/sbt) (👨‍💻 410 · 🔀 920 · 📥 12M · 📋 4.1K - 18% open · ⏱️ 02.11.2023):

```
git clone https://github.com/sbt/sbt
```
</details>
</div>

## Links at the bottom of the text

```markdown
Expand All @@ -21,7 +77,7 @@ See [Markdown Guide](https://www.markdownguide.org/basic-syntax/#code).

## Table with code blocks

Actually there is no simply solution and you should insert plain HTML table.
Actually there is no simple solution and you should insert plain HTML table.

````
<table>
Expand Down
5 changes: 1 addition & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ markdown_extensions:
- pymdownx.mark
- pymdownx.superfences
- pymdownx.tilde
- pymdownx.highlight:
# Bad idea, b/c some code blocks shouldn't have title and line-nums
# auto_title: true
# linenums: true
- pymdownx.highlight
- mdx_truly_sane_lists
- tables
- attr_list
Expand Down

0 comments on commit f652dbf

Please sign in to comment.