<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>markdown on jwogrady</title>
		<link>https://www.jwogrady.com/tags/markdown/</link>
		<description>Recent content in markdown on jwogrady</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Sun, 20 Sep 2026 16:33:00 -0500</lastBuildDate>
		
			<atom:link href="https://www.jwogrady.com/tags/markdown/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Four editor defaults that are right for code and wrong for prose</title>
				<link>https://www.jwogrady.com/posts/zed-for-prose/</link>
				<pubDate>Sun, 20 Sep 2026 16:33:00 -0500</pubDate>
				<guid>https://www.jwogrady.com/posts/zed-for-prose/</guid>
				<description>&lt;p&gt;Zed&amp;rsquo;s defaults are tuned for code, which is the right call and leaves four of&#xA;them wrong for what I&amp;rsquo;m actually doing in here.&lt;/p&gt;&#xA;&lt;p&gt;Autosave, for reasons recorded an entry ago and not worth reliving.&lt;/p&gt;&#xA;&lt;p&gt;Soft wrap to &lt;code&gt;editor_width&lt;/code&gt; — markdown has no line length, and a horizontal&#xA;scrollbar inside a paragraph is a problem I inflicted on myself.&lt;/p&gt;&#xA;&lt;p&gt;The third one is the one I&amp;rsquo;d never have guessed. &lt;strong&gt;Turn trailing-whitespace&#xA;stripping off for markdown.&lt;/strong&gt; Two trailing spaces is a hard line break; strip&#xA;them on save and the editor silently rewrites your text, and the diff shows&#xA;nothing wrong because whitespace is invisible. A formatter that is correct for&#xA;every other filetype quietly corrupts this one.&lt;/p&gt;</description>
			</item>
			<item>
				<title>The whole embed reconstructs from one string in the URL</title>
				<link>https://www.jwogrady.com/posts/spotify-id-is-in-the-link/</link>
				<pubDate>Sun, 20 Sep 2026 16:31:00 -0500</pubDate>
				<guid>https://www.jwogrady.com/posts/spotify-id-is-in-the-link/</guid>
				<description>&lt;p&gt;Hugo ships shortcodes for YouTube, Vimeo, X, Instagram and gists. Not Spotify.&#xA;So an embed is either raw HTML or something I write.&lt;/p&gt;&#xA;&lt;p&gt;I spent a while trying to move a copied iframe around before noticing that&#xA;the entire thing reconstructs from one string:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;open.spotify.com/album/6mnGRO87UFiKOoHL3BezZ7?si=abc123&#xA;                 ^type ^------- the id -------^ ^tracking&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;That &lt;code&gt;?si=&lt;/code&gt; is share-tracking. It isn&amp;rsquo;t part of the address and it doesn&amp;rsquo;t&#xA;belong in a published page.&lt;/p&gt;&#xA;&lt;p&gt;Everything else — the width, the allow list, the frame border — is boilerplate&#xA;I can generate. So:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Raw HTML disappears from markdown without saying anything</title>
				<link>https://www.jwogrady.com/posts/goldmark-strips-html/</link>
				<pubDate>Sun, 20 Sep 2026 16:24:00 -0500</pubDate>
				<guid>https://www.jwogrady.com/posts/goldmark-strips-html/</guid>
				<description>&lt;p&gt;Put an iframe in a markdown file and it renders as nothing. Not a broken&#xA;element, not a comment, not a warning in the build log. The element simply&#xA;isn&amp;rsquo;t in the HTML, as though I&amp;rsquo;d never typed it.&lt;/p&gt;&#xA;&lt;p&gt;Goldmark — Hugo&amp;rsquo;s markdown renderer — discards raw HTML unless you tell it&#xA;otherwise:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-toml&#34; data-lang=&#34;toml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;markup&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;goldmark&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;renderer&lt;/span&gt;]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#a6e22e&#34;&gt;unsafe&lt;/span&gt; = &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I&amp;rsquo;ll defend the name. It&amp;rsquo;s site-wide and it re-enables &lt;em&gt;all&lt;/em&gt; raw HTML in&#xA;&lt;em&gt;all&lt;/em&gt; markdown, which is a sensible thing to refuse when content might come&#xA;from someone else, and a sensible thing to allow on a personal site where I&#xA;wrote every file.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
