mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-10 15:57:07 +01:00
Tweak output colorization.
This commit is contained in:
@ -10,9 +10,10 @@ Inline Markdown-to-Chalk conversion routines.
|
||||
var CHALK = require('chalk');
|
||||
var LO = require('lodash');
|
||||
|
||||
module.exports = function( v, style ) {
|
||||
var temp = v.replace(/\*\*(.*?)\*\*/g, CHALK.bold('$1'));
|
||||
return style ? LO.get(CHALK, style)(temp) : temp;
|
||||
module.exports = function( v, style, boldStyle ) {
|
||||
boldStyle = boldStyle || 'bold';
|
||||
var temp = v.replace(/\*\*(.*?)\*\*/g, LO.get( CHALK, boldStyle )('$1'));
|
||||
return style ? LO.get( CHALK, style )(temp) : temp;
|
||||
};
|
||||
|
||||
}());
|
||||
|
Reference in New Issue
Block a user