 parseMD = (inputString, option={})->
   {markdownPreview} = option
 
+  DISABLE_SYNC_LINE = !(option.isForPreview) # set global variable
+
   # toc
   tocTable = {} # eliminate repeated slug
   tocEnabled = false

        tocConfigs.headings.push({content: tokens[idx + 1].content, level: tokens[idx].hLevel})

    id = if id then "id=#{id}" else ''
    if tokens[idx].lines
      line = tokens[idx].lines[0]
      return "<h#{tokens[idx].hLevel} class=\"sync-line\" data-line=\"#{line}\" #{id}>"


# YIYI : 这里我不仅仅 map 了 level 0
md.renderer.rules.paragraph_open = (tokens, idx)->
  lineNo = null
  if tokens[idx].lines and !DISABLE_SYNC_LINE # /*&& tokens[idx].level == 0*/)
    lineNo = tokens[idx].lines[0]
    return '<p class="sync-line" data-line="' + lineNo + '">'
  return '<p>'
