I finally managed to get txt2tags to work with javascript!
You can see it there:
http://wiki.txt2tags.org/demos/txt2tagsjs/txt2tagsjs-gui.html
It's not very clean, because I'm using this on top of a markdown parser
(showdown), but it's good enough to be implemented for example for comments on
a website, until someone make a better js converter :)
It's possible to get parsed an external t2t file, as you can see there:
http://wiki.txt2tags.org/demos/txt2tagsjs/sample_external_file.html
(the source: http://wiki.txt2tags.org/demos/txt2tagsjs/test.t2t )
This should work correctly:
- headings
- beautifulers (**bold**, //italic//, --strike-- and __underline__)
- Pre-Formatted Text, blockquote, code
- lists
- comments
This doesn't work at all:
- macros
- preprocessor (preproc / postproc
)
- 3 lines header
This could be improved:
- Tables
(it seems difficult to parse)
- definition lists
(only the title is supported)
- links (I still get some errors when multiple links are on the same line but
we should find a solution soon)
- images (additions such as centering images, otherwise it works ok)
- some ordered **sublists** will be turned to unordered lists when you mix both
types
- we should finish to remove all specific markdown syntax, if possible
Eric
ps : as a bonus, there is this markdown to txt2tags converter, which is also
based on showdown:
http://wiki.txt2tags.org/demos/txt2tagsjs/markdown2txt2tags/markdown2txt2tags.html
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list