JavaScript libraries for Markdown, Textile and others; Anchor references - Stack Overflow

I need a javascript library to convert structured ascii text to html on the fly.I am especially intere

I need a javascript library to convert structured ascii text to html on the fly. I am especially interested in the following point:

I would like do use anchored links inside pages, see .html#h-12.1.1

Which library for structured text would support this or if it is not supported could be easily extended (i could write an extension)?

Can you make a suggestion for a good and simple syntax for structured ascii text for "in page links"?

<a href="#jumpend">jump to the end</a>
...some body text...
<a name="jumpend">this is the end</a>

I like the way links are written in "markdown", so how could the name anchor in a to be written extension be expressed in a nice way?

Which libraries do you know or can you remend? Should be multi browser, good and easy to read and extend clean source code, actively maintained.

I am presently having a look at the JavaScript Markdown library "Showdown": /

I need a javascript library to convert structured ascii text to html on the fly. I am especially interested in the following point:

I would like do use anchored links inside pages, see http://www.w3/TR/REC-html40/struct/links.html#h-12.1.1

Which library for structured text would support this or if it is not supported could be easily extended (i could write an extension)?

Can you make a suggestion for a good and simple syntax for structured ascii text for "in page links"?

<a href="#jumpend">jump to the end</a>
...some body text...
<a name="jumpend">this is the end</a>

I like the way links are written in "markdown", so how could the name anchor in a to be written extension be expressed in a nice way?

Which libraries do you know or can you remend? Should be multi browser, good and easy to read and extend clean source code, actively maintained.

I am presently having a look at the JavaScript Markdown library "Showdown": http://attacklab/showdown/

Share Improve this question asked May 21, 2009 at 21:00 user89021user89021 15.2k16 gold badges55 silver badges65 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 3

You might look into markItUp!

I think that you should not use markdown if you are looking for anchor references. Try the following Creole Wiki markup parsers:

  • A prototype Javascript Creole 0.4 parser can be found at MeatballSociety
  • JavaScript Creole 1.0 Wiki Markup Parser, based on the above

Textile hast a builtin "footnote" mechanism:

.. AJAX[1] ...

fn1. Asynchronous JavaScript and XML ..

As of Textile 2.2 there's also a "notelist" feature: textile.sitemonks./?eg=notes

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744797711a4594305.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信