Pollen’s decode-paragraphs is nice, but doesn’t decode them in the way I like.
I much prefer how Markdown decodes paragraphs and how easy it is to make lists.
It doesn’t seem that Pollen parses Pollen markup when in markdown-authoring
mode. The following does’t work:
TEST.html.pmd
#lang pollen
◊(define (sc . words) `(span [[class "small-caps"]] ,@words))
## Welcome to ◊sc{CIA}
- Introduction to ◊sc{CIA}
- ◊sc{CIA} History
It occurs to me that I might be able to to create a ◊markdown tag to parse
markdown within or attach markdown decoding to Pollen’s root tag. Sadly, I have
no idea how to do this. I’m not much of a programmer.
Or maybe what I need is a way to tweak how decode-paragraphs works, and how to
easily generate lists in Pollen without typing all this out:
◊ul{
◊li{Item One}
◊li{Item Two}
◊li{Item Three}
}
The reason I don’t like the decode-paragraphs implementation is that I write
using “Semantic Linefeeds”. Where newlines are ignored within paragraphs (like
Markdown, HTML, reStructuredText, etc.). Like this:
> Four score and seven years ago
> our fathers brought forth on this continent,
> a new nation, conceived in Liberty,
> and dedicated to the proposition that
> all men are created equal.
Any help would be appreciated.
--
You received this message because you are subscribed to the Google Groups
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.