<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Drafts on Janusworx</title><link>https://janusworx.com/tags/drafts/</link><description>Recent content in Drafts on Janusworx</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>feedback@janusworx.com (Mario Jason Braganza)</managingEditor><webMaster>feedback@janusworx.com (Mario Jason Braganza)</webMaster><copyright>© 2026, Mario Jason Braganza</copyright><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><author>feedback@janusworx.com (Mario Jason Braganza)</author><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="https://janusworx.com/blog/line-breaks-on-my-microblog/" target="_blank" rel="noreferrer"&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="https://getdrafts.com/" target="_blank" rel="noreferrer"&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="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt;, it would just publish gibberish&lt;sup id="fnref:2"&gt;&lt;a href="#fn:2" class="footnote-ref" role="doc-noteref"&gt;2&lt;/a&gt;&lt;/sup&gt; instead of giving me said break.&lt;/p&gt;
&lt;p&gt;A bit of twiddling and experimenting led me to the solution.&lt;br&gt;
If I escaped the leading &lt;code&gt;{&lt;/code&gt; character with a &lt;code&gt;\&lt;/code&gt;, so that I typed &lt;code&gt;\{{&amp;lt; hbr &amp;gt;}}&lt;/code&gt;, it then worked just fine!&lt;/p&gt;
&lt;p&gt;P.P.P.S. I need to &lt;a href="https://liatas.com/posts/escaping-hugo-shortcodes/" target="_blank" rel="noreferrer"&gt;escape my Hugo shortcodes&lt;/a&gt; with &lt;code&gt;/* */&lt;/code&gt; if I want to display them in my posts. Like so, &lt;code&gt;{{/* some-shortcode */}}&lt;/code&gt;&lt;/p&gt;
&lt;div class="footnotes" role="doc-endnotes"&gt;
&lt;hr&gt;
&lt;ol&gt;
&lt;li id="fn:1"&gt;
&lt;p&gt;when it gets published on the blog, that is.&amp;#160;&lt;a href="#fnref:1" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id="fn:2"&gt;
&lt;p&gt;rather, ascii representations of said characters, but gibberish is the correct technical term&amp;#160;&lt;a href="#fnref:2" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description></item></channel></rss>