I’ve made a number of changes to the way the Markdown tool interacts with activeRenderer.
Firstly, nothing has changed in the way that Markdown interacts and renders the weblog. The only changes were in how the Markdown tool deals with OPML files.
There are 3 different ways of interacting with OPML files in activeRenderer. These are via the user.activeRenderer.callbacks.renderOpml callbacks. I’ve only written 2 of these. One for user.activeRenderer.callbacks.renderOpml.processNode and one for user.activeRenderer.callbacks.renderOpml.preProcess.
The callback at processNode takes the text of each node and renders inline Markdown markup only. The callback at preProcess takes the OPML file as a whole, converts it to text, runs it through the Markdown renderer, then converts it back to an outline prior to displaying. The problem with the preProcess callback is that node level links are stripped. This is bad.
With the processNode callback the node level links are left intact, I think, but the rendering is horrifically slow. Additionally, most of the benefit of Markdown markup is lost. It might just be best not to run OPML files through the Markdown renderer. After all, there is an alternative, just right a story.
The new Markdown Preferences page has some special prefs to use either, none, or both of these methods. It’s best not to use both.
Related posts:
- activeRenderer callbacks Marc Barrot has written 3 new callbacks into activeRendererSuite.activeRenderer for...
- activeRenderer update Marc Barrot has introduced 3 new callbacks in activeRendererSuite.activeRenderer for...
- Markdown and activeRenderer update Here’s the situation. Marc Barrot and I are trying to...
- Markdown for Stories I think I’ve got Markdown working for stories/external OPML files...
- Markdown and activeRenderer Donovan has been a guinea pig/beta tester for me with...
Related posts brought to you by Yet Another Related Posts Plugin.