Closed steve-perkins closed 8 years ago
@steve-perkins Thanks for the excellent feedback. This is in line with HackMyResume's "Markdown everywhere" requirement. We're not quite there yet (see below) but the goal is:
HMR currently (v1.2) supports this to a degree. For example, this inline Markdown in Jane's FRESH resume...
"info": {
/* ... */
"brief": "**Full-stack software developer with 6+ years industry experience** specializing in scalable cloud architectures for this, that, and the other. A native of southern CA, Jane enjoys hiking, mystery novels, and the company of Rufus, her two-year-old beagle.",
/* ... */
},
Gets bolded as you would expect. You'll also see a couple Markdown links and other (inline) Markdown decorations in her resume that are respected across HTML, PDF, and MS Word formats.
Regarding helpers: your requested functionality will be exposed for theme authors / devs / candidates who want to tweak things and beyond that, the internal resume representation Markdownifies things by default so this is very much something that is being built out.
Where the current support breaks down:
*yay*
), bolding (**yay**
), and links ([yay](/foo/bar)
).Thanks, @hacksalot. A few questions to make sure I follow correctly:
summary
field) one of the things targeted for that release, or is it a longer-term goal for an indeterminate version?Thanks!
Excellent question @steve-perkins. I haven't been able to answer them until now.
Please comment if you have any additional input. Thanks!
First of all, thanks so much for all of the effort that has gone into this!
One thing I'm not crazy about with the FRESH and JSON Resume formats is the top-level
about
orsummary
field. It's modeled as a single string with no formatting, but it would be great if some support for formatting were possible.The buzzword-cloud that's generated from the
skills
section is terrific for younger developers without a lot of job history. However, my anecdotal experience is that for older professionals with a career under their belts... you're better off with a summary section that simply lists a few free-form bullet-point highlight sentences.The
skills
model forces you into a "category -> buzzwords" structure, while thesummary
model forces you into a "paragraph with no line breaks or formatting" structure. Bummer.My proposal would simply be to add support for HTML or Markdown formatting within the
summary
field (at least newlines and bullet-points, if nothing else). Of course, there would be some challenges here:summary
field (I'm not sure if JSON has any support for multi-line string fields, or if you'd have to just embed\n
characters within a single line).\n
's with<br/>
's, and bullet-points with<ul><li>...</li></ul>
. The MS Word one would have to replace them with the correct Word XML constructs, etc.If this is too large of a feature request, then my fallback proposal would be to simply add some search-and-replace helper functions for Handlebars in
src/eng/generic-helpers.js
. I imagine that only two would be needed:replaceSubstring : function( txt, target, replacement )
- returns a copy oftxt
, with all occurrences of substringtarget
replaced by substringreplacement
. A Handlebars template for generating HTML output could then use{{ replaceSubstring summary '\n' "<br/>" }}
.enclosePrefixedString : function( txt, prefix, open, close )
- returns a copy oftxt
. Iftxt
is prefixed byprefix
, then that prefix is stripped and the string is instead enclosed byopen
andclose
. For the more tricky task of recognizing Markdown formatting at the beginning of a string, and replacing it with HTML formatting that must enclose the string. A Handlebars template could then use{{ enclosePrefixedString summary "/^ \* /" "<ul><li>" "</li></ul>" }}
.This fallback is a bit ugly, but it does take the responsibility for my feature request and push onto template authors who want to deal with it. I'm more than happy to submit a pull request for this myself if there is interest.
However, I am wondering if you don't already have a solution for this in the works now? When I look at the screenshot on the FluentCV website, the text shown in the summary field explicitly mentions support for HTML and Markdown formatting! Assuming that is legit, then will that support include line-breaks and bullet-point lists?