mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-09-08 22:04:06 +07:00
Add markdown format support (#25)
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
This commit is contained in:
25
node_modules/showdown/test/node/showdown.Converter.makeMarkdown.js
generated
vendored
Normal file
25
node_modules/showdown/test/node/showdown.Converter.makeMarkdown.js
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Created by Estevao on 15-01-2015.
|
||||
*/
|
||||
|
||||
describe('showdown.Converter', function () {
|
||||
'use strict';
|
||||
|
||||
require('source-map-support').install();
|
||||
require('chai').should();
|
||||
var jsdom = require('jsdom');
|
||||
var document = new jsdom.JSDOM('', {}).window.document; // jshint ignore:line
|
||||
var showdown = require('../bootstrap').showdown;
|
||||
|
||||
describe('makeMarkdown()', function () {
|
||||
var converter = new showdown.Converter();
|
||||
|
||||
it('should parse a simple html string', function () {
|
||||
var html = '<a href="/somefoo.html">a link</a>\n';
|
||||
var md = '[a link](</somefoo.html>)';
|
||||
|
||||
converter.makeMd(html, document).should.equal(md);
|
||||
});
|
||||
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user