dx-spec icon indicating copy to clipboard operation
dx-spec copied to clipboard

mdconf-style tags

Open tmcw opened this issue 7 years ago • 3 comments

In drafting up the spec and testing out some code examples in CommonMark, I'm really liking the approach of mdconf's tags: instead of

// @param a {string}
// @param b {string}
function b(a, b) {}

It'd be

// - param: a {string}
// - param: b {string}
function b(a, b) {}

Advantages being:

  • @param will no longer send a github notification to poor @param every time someone posts it in an issue
  • Multiple tags inline look correct through a CommonMark parser, whereas the JSDoc syntax has them smooshed onto one line

tmcw avatar Nov 22 '17 18:11 tmcw

Cool! I don't have any big changes planned in the next few days, will be more in the mode of using it occasionally and letting ideas percolate, so no danger of merge conflicts.

tmcw avatar Mar 30 '20 22:03 tmcw

Sorry I’ve been spending my time on parsing word documents recently (😰) , so please don’t let this issue block Data.elm!

wooorm avatar Apr 06 '20 07:04 wooorm