index.d.ts 374 B

12345678910111213
  1. /**
  2. * Decode markdown strings (which occur in places such as fenced code info
  3. * strings, destinations, labels, and titles).
  4. *
  5. * The “string” content type allows character escapes and -references.
  6. * This decodes those.
  7. *
  8. * @param {string} value
  9. * Value to decode.
  10. * @returns {string}
  11. * Decoded value.
  12. */
  13. export function decodeString(value: string): string