Open scripting opened 1 year ago
I have good news and bad news.
First the bad news.
feedlandHome wasn't converting markdowntext if it was present, and using that in place of description.
Bad Dave! You f-cked up. :-)
Now the good news.
I added the code, and it works! :-)
Markdown is really easy to support.
Now we're ready for the next test.
I have access to an experimental blog @fmfernandes set up, and have posted something there and ran it through FeedLand. There is a problem. In the feed the *'s are escaped with backslashes. As far as I know that's not recognized as Markdown syntax. Net-net imho the backslashes should not be there.
Here's the data.
This is the post.
This is the feed item for the post:
<item>
<title>This is Dave</title>
<link>https://scriptingfeeds.wpcomstaging.com/2023/08/17/this-is-dave/</link>
<comments>https://scriptingfeeds.wpcomstaging.com/2023/08/17/this-is-dave/#respond</comments>
<dc:creator><![CDATA[scripting]]></dc:creator>
<pubDate>Thu, 17 Aug 2023 19:54:14 +0000</pubDate>
<category><![CDATA[Uncategorized]]></category>
<guid isPermaLink="false">https://scriptingfeeds.wpcomstaging.com/?p=33</guid>
<description><![CDATA[I am writing some text in this blog post that will ultimately be read by FeedLand. If it works there will be **Markdown** text, something which everyone will love no doubt.]]></description>
<content:encoded><![CDATA[
<p>I am writing some text in this blog post that will ultimately be read by FeedLand. If it works there will be **Markdown** text, something which everyone will love no doubt.</p>
]]></content:encoded>
<wfw:commentRss>https://scriptingfeeds.wpcomstaging.com/2023/08/17/this-is-dave/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
<source:markdown>I am writing some text in this blog post that will ultimately be read by FeedLand. If it works there will be \*\*Markdown\*\* text, something which everyone will love no doubt.</source:markdown>
<post-id xmlns="com-wordpress:feed-additions:1">33</post-id>
</item>
This is what it looks like in FeedLand.
My mistake. Back in a minute. ;-)
We're good. The WordPress feed has a good
I'm creating new posts that test whether various features of Markdown are well-translated by the markdown encoder in code on the WP side and are properly decoded in FeedLand.
I made one change before starting, when we do the Markdown substitution on rendering, I enclose the generated text in a div class="divMarkdownGeneratedText" for two reasons:
So we can easily see when debugging that it was properly converted and
In case there are any tweaks we want to do for specific Markdown codes, this makes it easy to do special cases.
One thing I noticed is that FeedLand is not getting rssCloud notifications for this feed, and this is the feedland.org instance, so it has nothing to do with multiple instances or ports, or whatever is preventing the a8c install from getting notifications.
These all worked as they should except where noted.
@fmfernandes -- i fixed the CSS issue for markdowntext, so the lists now work properly in FeedLand.
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.
This is what the item looks like in the timeline.
And this is what it looks like in the feed.
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..