<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Drafts on Janusworx</title>
    <link>https://janusworx.com/tags/drafts/</link>
    <description>Recent content in Drafts on Janusworx</description>
    <image>
      <title>Janusworx</title>
      <url>https://janusworx.com/images/jw-logo.png</url>
      <link>https://janusworx.com/images/jw-logo.png</link>
    </image>
    <generator>Hugo -- 0.157.0</generator>
    <language>en</language>
    <lastBuildDate>Wed, 14 Sep 2022 14:35:09 +0530</lastBuildDate>
    <atom:link href="https://janusworx.com/tags/drafts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Drafts App Needs Escaping if I Am to Use Hugo Shortcodes</title>
      <link>https://janusworx.com/work/drafts-app-needs-escaping-if-i-am-to-use-hugo-shortcodes/</link>
      <pubDate>Wed, 14 Sep 2022 14:35:09 +0530</pubDate>
      <guid>https://janusworx.com/work/drafts-app-needs-escaping-if-i-am-to-use-hugo-shortcodes/</guid>
      <description>&lt;p&gt;When I &lt;em&gt;finally&lt;/em&gt; figured out how to get &lt;a href=&#34;https://janusworx.com/blog/line-breaks-on-my-microblog/&#34;&gt;line breaks working on my microblog&lt;/a&gt;, I ran into another sort of hiccough, when I tried doing that from my phone.&lt;br&gt;
I use the &lt;a href=&#34;https://getdrafts.com/&#34;&gt;Drafts app&lt;/a&gt; on my phone and tablet to slice and dice all manner of text and to send it to various locations as I please.&lt;/p&gt;
&lt;p&gt;One of those is a workflow, that lets me shoot text to a folder on my server which is then published (via a script) on the microblog.&lt;br&gt;
And everytime I typed my &lt;code&gt;{{&amp;lt; hbr &amp;gt;}}&lt;/code&gt; Hugo shortcode to let me have a line break in that post&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt;, it would just publish gibberish&lt;sup id=&#34;fnref:2&#34;&gt;&lt;a href=&#34;#fn:2&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;2&lt;/a&gt;&lt;/sup&gt; instead of giving me said break.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>When I <em>finally</em> figured out how to get <a href="https://janusworx.com/blog/line-breaks-on-my-microblog/">line breaks working on my microblog</a>, I ran into another sort of hiccough, when I tried doing that from my phone.<br>
I use the <a href="https://getdrafts.com/">Drafts app</a> on my phone and tablet to slice and dice all manner of text and to send it to various locations as I please.</p>
<p>One of those is a workflow, that lets me shoot text to a folder on my server which is then published (via a script) on the microblog.<br>
And everytime I typed my <code>{{&lt; hbr &gt;}}</code> Hugo shortcode to let me have a line break in that post<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup>, it would just publish gibberish<sup id="fnref:2"><a href="#fn:2" class="footnote-ref" role="doc-noteref">2</a></sup> instead of giving me said break.</p>
<p>A bit of twiddling and experimenting led me to the solution.<br>
If I escaped the leading <code>{</code> character with a <code>\</code>, so that I typed <code>\{{&lt; hbr &gt;}}</code>, it then worked just fine!</p>
<p>P.S. Subscribe to my <a href="/subscribe/">mailing list!</a><br>
Forward these posts and letters to your friends and get them to subscribe!<br>
P.P.S. Feed my <a href="https://www.amazon.in/hz/wishlist/ls/2QAUKHHAMOOVS?ref_=wl_share">insatiable reading habit.</a></p>
<p>P.P.P.S. I need to <a href="https://liatas.com/posts/escaping-hugo-shortcodes/">escape my Hugo shortcodes</a> with <code>/* */</code> if I want to display them in my posts. Like so, <code>{{/* some-shortcode */}}</code></p>
<div class="footnotes" role="doc-endnotes">
<hr>
<ol>
<li id="fn:1">
<p>when it gets published on the blog, that is.&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
<li id="fn:2">
<p>rather, ascii representations of said characters, but gibberish is the correct technical term&#160;<a href="#fnref:2" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
</ol>
</div>
]]></content:encoded>
    </item>
  </channel>
</rss>
