markdownAnchors property

List<List<String>> get markdownAnchors

Implementation

List<List<String>> get markdownAnchors {
  if (_mdaCache != null) return _mdaCache!;
  //title,url CACHE this
  List<List<String>> _ll = [];
  final lil = body.split('[');
  /*if (lil.length < 2) {
    _mdaCache = _ll;
    return _ll;
  }*/
  for (var i in lil) {
    final lol = i.split(']');
    if (lol[0].isNotEmpty) {
      final lal = i.split('(');
      if (lal.length > 1) {
        _ll.add([lol.first.split(')').first, lal[1].split(')').first]);
      }
    }
  }
  _mdaCache = _ll;
  return _ll;
}