Skip to content

Commit

Permalink
Support rSt link embed
Browse files Browse the repository at this point in the history
  • Loading branch information
DilemmaGX committed Dec 13, 2023
1 parent 104932f commit badc1b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<img src="https://custom-icon-badges.demolab.com/badge/style-Supported-mediumseagreen?style=flat-square" alt="">
<img src="https://custom-icon-badges.demolab.com/badge/logo-Supported-mediumseagreen?style=flat-square" alt="">
<img src="https://custom-icon-badges.demolab.com/badge/logoColor-Supported-mediumseagreen?style=flat-square" alt="">
<img src="https://custom-icon-badges.demolab.com/badge/color-Supported-mediumseagreen?style=flat-square" alt=""></p>
<p><img src="https://custom-icon-badges.demolab.com/badge/link-Partly_Supported-orange?style=flat-square" alt=""></p>
<img src="https://custom-icon-badges.demolab.com/badge/color-Supported-mediumseagreen?style=flat-square" alt="">
<img src="https://custom-icon-badges.demolab.com/badge/link-Supported-mediumseagreen?style=flat-square" alt=""></p>
<p><img src="https://custom-icon-badges.demolab.com/badge/label-Unsupported-ff0000?style=flat-square" alt="">
<img src="https://custom-icon-badges.demolab.com/badge/labelColor-Unsupported-ff0000?style=flat-square" alt="">
<img src="https://custom-icon-badges.demolab.com/badge/cacheSeconds-Unsupported-ff0000?style=flat-square" alt=""></p></div>
Expand All @@ -22,7 +22,7 @@

<p><img src="https://custom-icon-badges.demolab.com/badge/URL-Supported-mediumseagreen?style=flat-square" alt="">
<img src="https://custom-icon-badges.demolab.com/badge/Markdown-Supported-mediumseagreen?style=flat-square" alt="">
<img src="https://custom-icon-badges.demolab.com/badge/rSt-Partly_Supported-orange?style=flat-square" alt="">
<img src="https://custom-icon-badges.demolab.com/badge/rSt-Supported-mediumseagreen?style=flat-square" alt="">
<img src="https://custom-icon-badges.demolab.com/badge/AsciiDoc-Supported-mediumseagreen?style=flat-square" alt="">
<img src="https://custom-icon-badges.demolab.com/badge/HTML-Supported-mediumseagreen?style=flat-square" alt=""></p></div>

Expand Down
3 changes: 1 addition & 2 deletions doc/HOW.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ <h4>User Interface</h4>
<p>
The Generator part basically handles the main generation functions to generate a badge. For This version,
the Generate supports <code>URL</code>, <code>Markdown</code>, <code>rSt</code>, <code>AsciiDoc</code>, and
<code>HTML</code>. Note that rSt isn't fully supported: third-party links cannot be inserted. If you are
looking forward to support this feature, please <strong>PULL REQUEST</strong> on Github.
<code>HTML</code>.
</p>
<p>
The Quick Reference (QR) contains five iframe elements in current version. The QR contains a doc tab (this
Expand Down
3 changes: 1 addition & 2 deletions src/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ function g_rst(left = "", right, color = "default", style = "flat", logo = "", l
if (!RegExp("^https?:\/\/").test(link)) {
link = "http://" + link;
}
//link not supported
rst = ".. image:: " + url ;
rst = ".. image:: " + url + "\n :target: " + link;
} else {
rst = ".. image:: " + url ;
}
Expand Down

0 comments on commit badc1b8

Please sign in to comment.