2017-07-06 20:56:57 -07:00
..
2017-07-06 16:40:21 -07:00
2015-08-13 16:23:19 -07:00
2017-07-05 21:05:52 -07:00
2015-08-13 16:23:19 -07:00
2017-07-05 21:05:52 -07:00
2017-07-05 21:05:52 -07:00
2017-07-05 21:05:52 -07:00

/**
 * Make the contents of a README file available to include in the output.
 * @module jsdoc/readme
 */
'use strict';

var env = require('jsdoc/env');
var fs = require('jsdoc/fs');
var markdown = require('jsdoc/util/markdown');

/**
 * @class
 * @classdesc Represents a README file.
 * @param {string} path - The filepath to the README.
 */
function ReadMe(path) {
    var content = fs.readFileSync(path, env.opts.encoding);
    var parse = markdown.getParser();

    this.html = parse(content);
}

module.exports = ReadMe;