function listrules (ul) {
  var rules = []
  if (ul.tagName !== 'UL') return []
  forAllLinks(ul.children, function (c) {
    rules.push({
      href: c.href,
      text: c.innerText.split(' -')[0],
      full: c.innerText
    })
  })
  return rules
}
// Extract links to the syntax rules
Extract links to the syntax rules
Extract links to the syntax rules
function listrules (ul) {
  var rules = []
  if (ul.tagName !== 'UL') return []
  forAllLinks(ul.children, function (c) {
    rules.push({
      href: c.href,
      text: c.innerText.split(' -')[0],
      full: c.innerText
    })
  })
  return rules
}
function listrules ( ul ) { var rules = [ ] if ( ul . tagName !== 'UL' ) return [ ] forAllLinks ( ul . children , function ( c ) { rules . push ( { href : c . href , text : c . innerText . split ( ' -' ) [ 0 ] , full : c . innerText } ) } ) return rules }
Extract links to the syntax rules
Extract links to the syntax rules