gemrendr 0.3.1

Turns Gemtext into idiomatic HTML
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!-- Content generated using gemrendr; see <https://git.average.name/AverageHelper/gemrendr> for details. --><h1>This is a heading!</h1><br><h1>This is also a heading!</h1><br><p>This is some text. It is not special.</p><br><h2>Another heading</h2><br><h2>yes, leading spaces are optional</h2><br><p><a rel="external noopener noreferrer nofollow" href="gemini://geminiprotocol.net/docs/gemtext-specification.gmi">gemini://geminiprotocol.net/docs/gemtext-specification.gmi</a></p><br><p><a rel="external noopener noreferrer nofollow" href="gemini://geminiprotocol.net/docs/gemtext-specification.gmi">Here is a friendly link to the Gemtext specification</a></p><br><p><a rel="external noopener noreferrer nofollow" href="https://geminiprotocol.net/docs/gemtext-specification.gmi">gemini protocol isn't special for links</a></p><br><p><a rel="external noopener noreferrer nofollow" href="gemini://geminiprotocol.net/">multiple kinds of whitespace</a></p><br><p><a rel="external noopener noreferrer nofollow" href="gemini://geminiprotocol.net/">multiple whitespace between parts!</a></p><br><p><a rel="external noopener noreferrer nofollow" href="gemini://geminiprotocol.net/">weird      whitespace within tag!</a></p><br><p><a href="/foo/bar/baz.txt">leading slash still counts</a></p><br><p><details class="image"><summary title="/foo/bar.png"><p>Inline image!</p></summary><img src="/foo/bar.png" alt="" loading="lazy"></details></p><br><p>Links may also be closer together. Here are some examples from the spec:</p><p><a rel="external noopener noreferrer nofollow" href="gemini://example.org/">gemini://example.org/</a></p><p><a rel="external noopener noreferrer nofollow" href="gemini://example.org/">An example link</a></p><p><a rel="external noopener noreferrer nofollow" href="gemini://example.org/foo">Another example link at the same host</a></p><p><a href="foo/bar/baz.txt">A relative link</a></p><p><a rel="external noopener noreferrer nofollow" href="gopher://example.org:70/1">A gopher link</a></p><br><p><a href="this">shouldn't be a link, but it is.</a></p><p><a rel="external noopener noreferrer nofollow" href="gemini://example.org/">the leading space is optional</a></p><br><p>Not a link:</p><p>=&gt;</p><br><h3>Why not try lists?</h3><br><br><h3>spaces are still optional</h3><br><ul><li>This is a list item.</li><li>Here's another.</li><li>Still a list item!</li></ul><p>*This is not.</p><p>** This is also not.</p><p>*	Neither is this.</p><p>- Not a list item.</p><p>  - Not a list item.</p><br><blockquote>Someone said this.</blockquote><br><blockquote>Someone also said this.</blockquote><br><blockquote>this is not the same quote.</blockquote><blockquote></blockquote><blockquote>multiline quote! if only.</blockquote><br><pre>This text is preformatted.

# Hello, world!

This isn't to be treated as Gemtext:
=&gt; gemini://example.com

&gt; no one said this</pre><br><pre>This is also plaintext</pre><br><br><figure aria-label="This is alt text"><pre alt="This is alt text">This text is also preformatted.</pre></figure><br><figure aria-label="Art by Joan Stark of a camp site. A small tent faces a small campfire. There is a log nearby, perfect for sitting on. The initials &quot;jgs&quot; can be seen."><pre alt="Art by Joan Stark of a camp site. A small tent faces a small campfire. There is a log nearby, perfect for sitting on. The initials &quot;jgs&quot; can be seen.">        ______
jgs    /     /\
      /     /  \
     /_____/----\_    (
    &quot;     &quot;          ).
   _ ___          o (:') o
  (@))_))        o ~/~~\~ o
                  o  o  o</pre></figure><br><p>Syntax highlighting may be applied to preformatted blocks:</p><pre alt="javascript">	column.substring(0,num)</pre><br><p>The spec says, &quot;Any text following the leading &quot;```&quot; of a preformat toggle line MUST be ignored by clients.&quot; So...</p><p>wow, what WAS that??</p>