From 9ab19c90d23aaaeeb6b40f6994d992a90cb9f442 Mon Sep 17 00:00:00 2001 From: Orest Ivasiv Date: Fri, 10 Nov 2023 20:33:34 +0100 Subject: [PATCH] upd markdown.md --- docs/wiki/howtos/markdown.md | 144 ++++++++++++++++++----------------- 1 file changed, 76 insertions(+), 68 deletions(-) diff --git a/docs/wiki/howtos/markdown.md b/docs/wiki/howtos/markdown.md index c13a02e..3354b84 100644 --- a/docs/wiki/howtos/markdown.md +++ b/docs/wiki/howtos/markdown.md @@ -13,32 +13,10 @@ tags: See [Markdown Guide](https://www.markdownguide.org/basic-syntax/#code). -## Folded text +## Collapsed text + +See details [HTML Details Element `
`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details). -```` -```markdown -
- -sbt (🥇33 · ⭐ 4.7K) - sbt, the interactive build tool. - - Apache-2 - - - [MIT](http://bit.ly/34MBwT8) - - - - - - -- [GitHub](https://github.com/sbt/sbt) (👨‍💻 410 · 🔀 920 · 📥 12M · 📋 4.1K - 18% open · ⏱️ 02.11.2023): - - ``` - git clone https://github.com/sbt/sbt - ``` -
-``` -```` !!! example @@ -65,9 +43,37 @@ See [Markdown Guide](https://www.markdownguide.org/basic-syntax/#code).
+ +??? note "Markdown" + + ```` + ```markdown +
+ + sbt (🥇33 · ⭐ 4.7K) - sbt, the interactive build tool. + + Apache-2 + + + [MIT](http://bit.ly/34MBwT8) + + + + + + + - [GitHub](https://github.com/sbt/sbt) (👨‍💻 410 · 🔀 920 · 📥 12M · 📋 4.1K - 18% open · ⏱️ 02.11.2023): + + ``` + git clone https://github.com/sbt/sbt + ``` +
+ ``` + ```` + ## Links at the bottom of the text -```markdown +```markdown title="Markdown" [text](http://a.com) [text][id] @@ -79,11 +85,10 @@ See [Markdown Guide](https://www.markdownguide.org/basic-syntax/#code). Actually there is no simple solution and you should insert plain HTML table. -```` - +
Python snippetRuby snippetRuby snippet
@@ -118,52 +123,55 @@ puts say.upcase
-```` - - - - - - - - - - -
Python snippetRuby snippet
- -```python -# Python 3: Fibonacci series up to n ->>> def fib(n): ->>> a, b = 0, 1 ->>> while a < n: ->>> print(a, end=' ') ->>> a, b = b, a+b ->>> print() ->>> fib(1000) -0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 -``` - -```ruby -# Output "I love Ruby" -say = "I love Ruby" -puts say - -# Output "I *LOVE* RUBY" -say['love'] = "*love*" -puts say.upcase - -# Output "I *love* Ruby" -# five times -5.times { puts say } -``` -
+??? note "Markdown" + + ```` + + + + + + + + + +
Python snippetRuby snippet
+ + ```python + # Python 3: Fibonacci series up to n + >>> def fib(n): + >>> a, b = 0, 1 + >>> while a < n: + >>> print(a, end=' ') + >>> a, b = b, a+b + >>> print() + >>> fib(1000) + 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 + ``` + + + ```ruby + # Output "I love Ruby" + say = "I love Ruby" + puts say + + # Output "I *LOVE* RUBY" + say['love'] = "*love*" + puts say.upcase + + # Output "I *love* Ruby" + # five times + 5.times { puts say } + ``` +
+ ```` ## Escape backticks `` ` `` in multiline code block If you need to show extra backticks, enclose them with a higher number of them. -`````text +`````markdown title="Markdown" ```` ```python print("Hello")