scripting / Scripting-News

I'm starting to use GitHub for work on my blog. Why not? It's got good communication and collaboration tools. Why not hook it up to a blog?
117 stars 10 forks source link

How Markdown flows through FeedLand #269

Open scripting opened 1 year ago

scripting commented 1 year ago

I have a fictitious user, Bull Mancuso, who uses FeedLand. His outgoing feed is here:

http://data.feedland.org/feeds/bull.xml

To start the exploration, I added a titled item with a single bit of styled text in it.

image

This is what the item looks like in the timeline.

image

And this is what it looks like in the feed.

<item>
      <title>First Markdown test</title>
      <description>I want to take a look at how Markdown is generated by FeedLand and how it displays it. This is where we start, with a post with a <strong>single bit</strong> of marked up text.</description>
      <pubDate>Thu, 17 Aug 2023 14:56:56 GMT</pubDate>
      <link>https://feedland.org/?item=5015542</link>
      <guid>https://feedland.org/?item=5015542</guid>
      <source:markdown>I want to take a look at how Markdown is generated by FeedLand and how it displays it. This is where we start, with a post with a **single bit** of marked up text.</source:markdown>
      </item>

This all looks exactly as I wanted it to. Next step I'm going to see how the rendering if the item takes place in feedlandHome. I want to see the actual code that's turning the Markdown text into HTML. Back in a bit..

scripting commented 1 year ago

I tried it with a bit more complicated Markdown text.

image

This is the feed item:

<item>
   <title>Second Markdown test</title>
   <description><p>This post has a list.</p> <p>1. One.</p> <p>2. Two.</p> <p>3. Three.</p> <p>And ladies and gentlemen, boys and girls -- <em>it works!</em></p></description>
   <pubDate>Thu, 17 Aug 2023 15:56:32 GMT</pubDate>
   <link>https://feedland.org/?item=5016254</link>
   <guid>https://feedland.org/?item=5016254</guid>
   <source:markdown>This post has a list. 1\. One. 2\. Two. 3\. Three. And ladies and gentlemen, boys and girls -- _it works!_</source:markdown>
   </item>
sillygwailo commented 1 year ago

No line breaks in the element, though?

This is is how GitHub interprets that Markdown (just copying & pasting from the above):

This post has a list. 1. One. 2. Two. 3. Three. And ladies and gentlemen, boys and girls -- it works!