code: function replace(content, filename) {
      var dirname = nps.dirname(filename)
  
      return content.replace(
        new RegExp(
          '(^\\s*)' + prefix + '\\s*(.+?)\\s*' + suffix + '(\\s*\\n?)$',
          'gm'
        ),
        // /@\s*(.+?)\s*@/g,
        function(m, preappend, path, newlineOrNull) {
          var currLink = path.trim()
          var fullpath = ''
  
          // link::[why-need-require]../refs/why-need-require.md
          if (disableValue !== 'link' && currLink.startsWith('link::')) {
            var title = ''
            path = ''
  
            if (/^link::\[(.+?)\](.+)/.test(currLink)) {
              title = RegExp.$1
              path = RegExp.$2
              title = title && title.trim() ? title.trim() : path
            } else if (/^link::(.+)/.test(currLink)) {
              title = RegExp.$1
              path = RegExp.$1
            }
  
            fullpath = checkPath(path, dirname, selfFilename, true, alias)
  
            if (fullpath) {
              var link = findLink(filesMap, fullpath)
              if (link !== false) {
                return preappend + '[' + title + '](' + link + ')' + newlineOrNull
              }
            }
          }
  
          if (disableValue !== 'file-content') {
            fullpath = checkPath(currLink, dirname, filename, false, alias)
            if (fullpath) {
              var fileContent = fs.readFileSync(fullpath).toString()
              if (deep) {
                fileContent = replace(fileContent, fullpath)
              }
  
              return fileContent + newlineOrNull
            }
          }
  
          return m
        }
      )
    }
docs: console.log(filename);