https://github.com/acao/marked-poetry
Extends marked.js to provide handy tokens and renderers for free verse poetry
https://github.com/acao/marked-poetry
Last synced: 3 months ago
JSON representation
Extends marked.js to provide handy tokens and renderers for free verse poetry
- Host: GitHub
- URL: https://github.com/acao/marked-poetry
- Owner: acao
- Created: 2014-05-03T18:48:15.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-03T19:02:35.000Z (about 11 years ago)
- Last Synced: 2025-01-16T21:36:06.743Z (5 months ago)
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
marked-poetry
=============Extends marked.js to provide handy tokens and renderers for free verse poetry
Inspired by [this experiment](https://bitbucket.org/chriskrycho/markdown-poetry) with python-markdown.
It will involve extending the marked lexer to provide a token and block renderer for something like this:
```
\\\
in wilderness I am
that only melon
flowering
& splitting
sending vines out
everywhere
you are
in wilderness
I am that only
melon flowering
& splitting
sending vines out
in the flower world
out there
under the dawn
a pale blue cloud
will be grey water
at its peak
the mist will reach
will rain down
on the flower ground
& shining
reaching bottom
where you are
in wilderness
that only melon flowering
I am
& splitting
sending vines out
everywhere
\\\
```And it would render properly in html using the marked parser, respecting either spaces and/or indentation and the appropriate line breaks.
Example from [15 Flower World Variations](http://www.ubu.com/ethno/poems/06.html), derived from literal translations of Yaqui Deer Dance Songs, from Ubu Web.