     @bindEvents()
 
     @mainModule.emitter.emit 'on-did-render-preview', {htmlString: html, previewElement: @element}
+
+    if @firstTimeRenderMarkdowon
+      @firstTimeRenderMarkdowon = false
+      cursor = @editor.cursors[0]
+      return if not cursor
+      if @presentationMode
+        @scrollSyncForPresentation cursor.getBufferRow()
+      else
+        @scrollSyncToLineNo cursor.getScreenRow()
 
   bindEvents: ->
     @bindTagAClickEvent()


    # this variable will check if it is the first time to render MathJax for markdown.
    @firstTimeRenderMathJax = true

    # presentation mode
    @presentationMode = false

    @rootDirectoryPath = @editor.getDirectoryPath()
    @projectDirectoryPath = @getProjectDirectoryPath()
    @firstTimeRenderMathJax = true
    @firstTimeRenderMarkdowon = true

    if @disposables # remove all binded events
      @disposables.dispose()
