An autolinking and extracting library for use in the DOM.
More info on twitter-text here
Based of the twitter-text-rb library
Main goal is to achieve 100 percent conformance. More about conformance here
To run the conformance tests just open test/test.html in your browser.
- Download the project from github.
- Include the lib/twitter-text.js file in your html.
- First, generate the test.html file by running
rake generate_testsin the project root. This uses the test.html.erb file to generate tests, converting the twitter-text-conformance yaml files to json and writing tests against those. Then just open up test.html in your browser to run the tests. If you change the test.html.erb file than you have to run
TwitterText.auto_link("This is a #tweet with a @username");
// This is a <a href="http://twitter.com/search?q=tweet">#tweet</a> with a <a href="http://twitter.com/username">username</a>
- Figure out the last couple of url regexp bugs
- Convert to Node.js?