Browse Source

Renamed stmd -> commonmark

pull/14/head
Vitaly Puzrin 10 years ago
parent
commit
d937eec5f3
  1. 2
      Makefile
  2. 2
      README.md
  3. 10
      benchmark/implementations/commonmark-reference/index.js
  4. 0
      benchmark/implementations/commonmark-reference/stmd.js
  5. 10
      benchmark/implementations/stmd/index.js
  6. 2
      benchmark/profile.js
  7. 2
      benchmark/samples/inline-entity.md
  8. 2
      benchmark/samples/inline-html.md
  9. 4
      lib/common/html_blocks.js
  10. 4
      lib/common/url_schemas.js
  11. 2
      support/specsplit.js
  12. 4
      test/commonmark.js
  13. 0
      test/fixtures/commonmark/bad.txt
  14. 0
      test/fixtures/commonmark/good.txt
  15. 0
      test/fixtures/commonmark/spec.txt
  16. 3
      test/fixtures/remarkable/commonmark_extras.txt

2
Makefile

@ -26,7 +26,7 @@ lint:
test: lint
NODE_ENV=test mocha -R spec
echo "CommonMark stat:\n"
./support/specsplit.js test/fixtures/stmd/spec.txt
./support/specsplit.js test/fixtures/commonmark/spec.txt
gh-pages:

2
README.md

@ -178,7 +178,7 @@ during this project's development.
Links:
1. https://github.com/jgm/stmd - reference CommonMark implementations in C & JS,
1. https://github.com/jgm/CommonMark - reference CommonMark implementations in C & JS,
also contains latest spec & online demo.
2. http://talk.commonmark.org - CommonMark forum, good place to collaborate
developpers efforts.

10
benchmark/implementations/commonmark-reference/index.js

@ -0,0 +1,10 @@
'use strict'
var commonmark = require('./stmd');
var parser = new commonmark.DocParser();
var renderer = new commonmark.HtmlRenderer();
exports.run = function(data) {
return renderer.render(parser.parse(data));
}

0
benchmark/implementations/stmd/stmd.js → benchmark/implementations/commonmark-reference/stmd.js

10
benchmark/implementations/stmd/index.js

@ -1,10 +0,0 @@
'use strict'
var stmd = require('./stmd');
var parser = new stmd.DocParser();
var renderer = new stmd.HtmlRenderer();
exports.run = function(data) {
return renderer.render(parser.parse(data));
}

2
benchmark/profile.js

@ -13,7 +13,7 @@ var md = new Remarkable({
});
//var data = fs.readFileSync(path.join(__dirname, '/samples/lorem1.txt'), 'utf8');
var data = fs.readFileSync(path.join(__dirname, '../test/fixtures/stmd/spec.txt'), 'utf8');
var data = fs.readFileSync(path.join(__dirname, '../test/fixtures/commonmark/spec.txt'), 'utf8');
for (var i = 0; i < 20; i++) {
md.render(data);

2
benchmark/samples/inline-entity.md

@ -1,4 +1,4 @@
stmd tests:
entities:
&nbsp; &amp; &copy; &AElig; &Dcaron; &frac34; &HilbertSpace; &DifferentialD; &ClockwiseContourIntegral;

2
benchmark/samples/inline-html.md

@ -1,4 +1,4 @@
Taking stmd tests from the spec for benchmarking here:
Taking commonmark tests from the spec for benchmarking here:
<a><bab><c2c>

4
lib/common/html_blocks.js

@ -1,5 +1,5 @@
// List of valid html blocks names, accorting to stmd spec
// http://jgm.github.io/stmd/spec.html#html-blocks
// List of valid html blocks names, accorting to commonmark spec
// http://jgm.github.io/CommonMark/spec.html#html-blocks
'use strict';

4
lib/common/url_schemas.js

@ -1,5 +1,5 @@
// List of valid url schemas, accorting to stmd spec
// http://jgm.github.io/stmd/spec.html#autolinks
// List of valid url schemas, accorting to commonmark spec
// http://jgm.github.io/CommonMark/spec.html#autolinks
'use strict';

2
support/specsplit.js

@ -1,7 +1,7 @@
#!/usr/bin/env node
/*eslint no-console:0*/
// Fixtures generator from stmd specs. Split spec to working / not working
// Fixtures generator from commonmark specs. Split spec to working / not working
// examples, or show total stat.
'use strict';

4
test/stmd.js → test/commonmark.js

@ -9,8 +9,8 @@ var utils = require('./utils');
var Remarked = require('../');
describe('stmd', function () {
describe('CommonMark', function () {
var md = new Remarked('commonmark');
utils.addSpecTests(path.join(__dirname, 'fixtures/stmd/good.txt'), md);
utils.addSpecTests(path.join(__dirname, 'fixtures/commonmark/good.txt'), md);
});

0
test/fixtures/stmd/bad.txt → test/fixtures/commonmark/bad.txt

0
test/fixtures/stmd/good.txt → test/fixtures/commonmark/good.txt

0
test/fixtures/stmd/spec.txt → test/fixtures/commonmark/spec.txt

3
test/fixtures/remarkable/commonmark_extras.txt

@ -41,7 +41,7 @@ test
.
Link label has priority over emphasis (not covered by stmd tests):
Link label has priority over emphasis (not covered by commonmark tests):
.
[**link]()**
@ -52,6 +52,7 @@ Link label has priority over emphasis (not covered by stmd tests):
<p>**<a href="">link**</a></p>
.
Issue #55:
.

Loading…
Cancel
Save