mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-12-22 05:27:22 +00:00
fix: correctly replace frozen fields in JRS-themed resumes
This commit is contained in:
parent
02f0af1ff8
commit
00067d012a
4
dist/renderers/jrs-generator.js
vendored
4
dist/renderers/jrs-generator.js
vendored
@ -46,8 +46,8 @@ Definition of the JRSGenerator class.
|
||||
turnoff.forEach(function(c, idx) {
|
||||
return console[c] = org[idx];
|
||||
});
|
||||
return rezHtml = rezHtml.replace(/@@@@~.*?~@@@@/gm, function(val) {
|
||||
return MDIN(val.replace(/~@@@@/gm, '').replace(/@@@@~/gm, ''));
|
||||
return rezHtml = rezHtml.replace(/@@@@~[\s\S]*?~@@@@/g, function(val) {
|
||||
return MDIN(val.replace(/~@@@@/g, '').replace(/@@@@~/g, ''));
|
||||
});
|
||||
}
|
||||
};
|
||||
|
@ -37,8 +37,8 @@ JRSGenerator = module.exports =
|
||||
turnoff.forEach (c, idx) -> console[c] = org[idx]
|
||||
|
||||
# Unfreeze and apply Markdown
|
||||
rezHtml = rezHtml.replace /@@@@~.*?~@@@@/gm, (val) ->
|
||||
MDIN( val.replace( /~@@@@/gm,'' ).replace( /@@@@~/gm,'' ) )
|
||||
rezHtml = rezHtml.replace /@@@@~[\s\S]*?~@@@@/g, (val) ->
|
||||
MDIN( val.replace( /~@@@@/g,'' ).replace( /@@@@~/g,'' ) )
|
||||
|
||||
|
||||
MDIN = (txt) -> # TODO: Move this
|
||||
|
Loading…
Reference in New Issue
Block a user