-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Musa Al-hassy
committed
Dec 22, 2024
1 parent
9f674dd
commit 8a52cb8
Showing
22 changed files
with
1,495 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ | |
/ltximg/ | ||
**/.DS_Store | ||
|
||
/tests/indent.log | ||
/indent.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
input: |- | ||
1. It works when all 5 arguments are provided | ||
badge:Let_me_google_that|for_you!|orange|https://lmgtfy.app/?q=badge+shields.io&iie=1|Elixir | ||
2. It works when we use [ [ link ] ] syntax with generous spaces and newlines | ||
[[badge: Let me google that | for you! | orange | | ||
https://lmgtfy.app/?q=badge+shields.io&iie=1|Elixir]] | ||
3. It works when only the first 2 arguments are provided; | ||
asterisks are passed unaltered into the first argument | ||
badge:Let_me_*not*_google_that|for_you | ||
4. It works when all 5 arguments are provided - URL ‘here’ makes it a local link | ||
badge:key|value|informational|here|Elixir | ||
5. We can use spaces, commas, dashes, and percentage symbols in the first argument | ||
badge:example_with_spaces,_-,_and_%|points_right_here|orange|here | ||
6. It works when only first 2 arguments are given: Default colour & logo are green & no logo shown | ||
badge:key|value | ||
7. When only a key is provided, the value slot is shown as an empty green stub | ||
badge:key | ||
8. When only a value is provided, only the value is shown in a default green | ||
---no stub for the missing key, yay | ||
badge:|value | ||
9. It's only a green stub when provided with an empty key and empty value | ||
badge:||green | ||
10. It's only a green stub when we use no options at all | ||
[[badge:]] | ||
expectations: | ||
html: |- | ||
<ol class="org-ol"> | ||
<li> | ||
<p>It works when all 5 arguments are provided</p> | ||
<p> | ||
<a href="https://lmgtfy.app/?q=badge+shields.io&iie=1" | ||
><img | ||
src="https://img.shields.io/badge/Let_me_google_that-for_you%21-orange?logo=Elixir" | ||
/></a> | ||
</p> | ||
</li> | ||
<li> | ||
<p> | ||
It works when we use [ [ link ] ] syntax with generous spaces and newlines | ||
</p> | ||
<p> | ||
<a href="https://lmgtfy.app/?q=badge+shields.io&iie=1" | ||
><img | ||
src="https://img.shields.io/badge/Let%20me%20google%20that-for%20you%21-orange?logo=Elixir" | ||
/></a> | ||
</p> | ||
</li> | ||
<li> | ||
<p> | ||
It works when only the first 2 arguments are provided; asterisks are | ||
passed unaltered into the first argument | ||
</p> | ||
<p> | ||
<img | ||
src="https://img.shields.io/badge/Let_me_%2Anot%2A_google_that-for_you-nil?logo=nil" | ||
/> | ||
</p> | ||
</li> | ||
<li> | ||
<p> | ||
It works when all 5 arguments are provided - URL ‘here’ makes it a local | ||
link | ||
</p> | ||
<p> | ||
<a id="key" href="#key" | ||
><img | ||
src="https://img.shields.io/badge/key-value-informational?logo=Elixir" | ||
/></a> | ||
</p> | ||
</li> | ||
<li> | ||
<p> | ||
We can use spaces, commas, dashes, and percentage symbols in the first | ||
argument | ||
</p> | ||
<p> | ||
<a | ||
id="example_with_spaces,_-,_and_%" | ||
href="#example_with_spaces,_-,_and_%" | ||
><img | ||
src="https://img.shields.io/badge/example_with_spaces%2C_--%2C_and_%25-points_right_here-orange?logo=nil" | ||
/></a> | ||
</p> | ||
</li> | ||
<li> | ||
<p> | ||
It works when only first 2 arguments are given: Default colour & logo | ||
are green & no logo shown | ||
</p> | ||
<p> | ||
<img src="https://img.shields.io/badge/key-value-nil?logo=nil" /> | ||
</p> | ||
</li> | ||
<li> | ||
<p> | ||
When only a key is provided, the value slot is shown as an empty green | ||
stub | ||
</p> | ||
<p> | ||
<img src="https://img.shields.io/badge/key--nil?logo=nil" /> | ||
</p> | ||
</li> | ||
<li> | ||
<p> | ||
When only a value is provided, only the value is shown in a default green | ||
—no stub for the missing key, yay | ||
</p> | ||
<p> | ||
<img src="https://img.shields.io/badge/-value-nil?logo=nil" /> | ||
</p> | ||
</li> | ||
<li> | ||
<p> | ||
It's only a green stub when provided with an empty key and empty value | ||
</p> | ||
<p> | ||
<img src="https://img.shields.io/badge/--green?logo=nil" /> | ||
</p> | ||
</li> | ||
<li> | ||
<p>It's only a green stub when we use no options at all</p> | ||
<p> | ||
<img src="https://img.shields.io/badge/--nil?logo=nil" /> | ||
</p> | ||
</li> | ||
</ol> | ||
latex: |- | ||
\begin{enumerate} | ||
\item It works when all 5 arguments are provided | ||
\item It works when we use [ [ link ] ] syntax with generous spaces and newlines | ||
\item It works when only the first 2 arguments are provided; | ||
asterisks are passed unaltered into the first argument | ||
\item It works when all 5 arguments are provided - URL ‘here’ makes it a local link | ||
\item We can use spaces, commas, dashes, and percentage symbols in the first argument | ||
\item It works when only first 2 arguments are given: Default colour \& logo are green \& no logo shown | ||
\item When only a key is provided, the value slot is shown as an empty green stub | ||
\item When only a value is provided, only the value is shown in a default green | ||
---no stub for the missing key, yay | ||
\item It's only a green stub when provided with an empty key and empty value | ||
\item It's only a green stub when we use no options at all | ||
\end{enumerate} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
input: |- | ||
#+begin_box Pay Attention! | ||
This is the key insight... | ||
(We have an HTML box enclosing the user's title and text) | ||
#+end_box | ||
expectations: | ||
html: |- | ||
<div | ||
style=" | ||
padding: 1em; | ||
background-color: #ccffcc; | ||
border-radius: 15px; | ||
font-size: 0.9em; | ||
" | ||
> | ||
<h3>Pay Attention!</h3> | ||
<p> | ||
This is the key insight… (We have an HTML box enclosing the user's | ||
title and text) | ||
</p> | ||
</div> | ||
latex: |- | ||
\begin{tcolorbox}[title={Pay Attention!},colback=red!5!white,colframe=red!75!black,colbacktitle=yellow!50!red,coltitle=red!25!black, fonttitle=\bfseries,subtitle style={boxrule=0.4pt, colback=yellow!50!red!25!white}] | ||
This is the key insight\ldots{} | ||
(We have an HTML box enclosing the user's title and text) | ||
\end{tcolorbox} |
Oops, something went wrong.