Steve Howell (showell@...) wrote:
> On Fri, 2002-12-06 at 07:06, Oren Ben-Kiki wrote:
> > Steve Howell [mailto:showell@...] wrote:
> > > I used to think YAML was bad for documents, but then my
> > > clever coworker Lex showed me a few tricks...
> > > ---
> > > - |
> > > <html>
> > > This is <b>bold</b> text.
> > > Imagine lots of other
> > > text here that you're
> > > comfortable
> > > keeping in HTML.
> > That's cheating - you are using XML for the "markup" part.
> I can't sneak anything by you, Oren. ;)
> That's the whole idea, it's the best of both worlds.
Off and on I've tinkered with something like Steve's HTML widgets
concept. It's called yMark and it's a markup language (read:
"everything YAML doesn't want to be... and MORE!!").
The root document is a sequence. Sequence entries are assumed to be
paragraphs. Other elements are typed.
- !^h1 yMark
- !^title Inline Markup
- Inline markup allows words and phrases within text to have character
styles (like italics and boldface) and functionality (like hyperlinks).
The coolest part with using typing is how you create tables:
- !^th [ Name, Address, Phone ]
- [ Timothy Graveltooth, 23 E. Birch, 607-330-3301 ]
- [ Susan Archibald, 45 S. Elm, 607-330-3302 ]
I'd like to work on an inline markup for paragraphs which would have
meaning within the scope of a document. For example, links could be
achieve by allowing anchors to be referenced by a subtle markup:
- Thanks for attending [&RubyConf] this year, it was really quite a
- *RubyConf !^link http://www.rubyconf.org/
Still working on the syntax, but you get the picture. I think there's a
way to marry something like reStructuredText with YAML and have a better
product. It would be as readable as reStructuredText, but it would be
more accessible to YAML parsers, which is kinda cool.
God willing, we will prevail in peace and freedom from fear and in true
health through the purity and essence of our natural fluids,