code: function getQuery(value) {
    const [, qs] = value.split(/[?#]/);
  
    // if there is no file, then return an empty object
    if (qs == null) return { highlights: [] };
  
    // if # is used, then force the query object
    const query = value.indexOf("#") > -1 ? { file: qs } : querystring.parse(qs);
  
    // validate the query
    if (!isValid(query)) {
      throw new Error("Malformed query. Check your 'gist:' imports");
    }
  
    // explode the highlights ranges, if any
    let highlights = [];
    if (typeof query.highlights === "string") {
      highlights = rangeParser.parse(query.highlights);
    } else if (Array.isArray(query.highlights)) {
      highlights = query.highlights;
    }
  
    query.highlights = highlights;
  
    return query;
  }
docs: Builds the query object.
  This methods looks for anything that is after ? or # in the gist: directive.
  ? is interpreted as a query string.
  # is interpreted as a filename.
  @param {string} value the value of the inlineCode block.
  @returns {object} the query object.