 -
 -        val sections = StringBuilder()
 -        sections.append("<table class='sections'>")
+-        //Tags
+-        renderTagList(sections, "Version", comment)
+-        renderTagList(sections, "Author", comment)
+-        renderTagList(sections, "Since", comment)
+-        renderTagList(sections, "Deprecated", comment)
 -        //Fields
 -        val fields = comment.findTags(LuaDocFieldDef::class.java)
 -        renderTagList(sections, "Fields", fields) { renderFieldDef(sections, it, tyRenderer) }

From db8c9b4b5c4eee9f743c63b52fd031742e5723a4 Mon Sep 17 00:00:00 2001
From: tangzx <272669294@qq.com>
Date: Wed, 6 Jun 2018 18:31:51 +0800
Subject: [PATCH] Revert "redesigned documentation"

This reverts commit e9027fedca60bd885e1b2b378cc57949a6b88394.
---
 .../tang/intellij/lua/documentation/DocRenderer.kt | 202 ++++++++++-----------
 .../lua/documentation/LuaDocumentationProvider.kt  | 106 +++++------
 2 files changed, 142 insertions(+), 166 deletions(-)

diff --git a/src/main/java/com/tang/intellij/lua/documentation/DocRenderer.kt b/src/main/java/com/tang/intellij/lua/documentation/DocRenderer.kt
index 59876eb6..dc0db89f 100644
--- a/src/main/java/com/tang/intellij/lua/documentation/DocRenderer.kt
+++ b/src/main/java/com/tang/intellij/lua/documentation/DocRenderer.kt
@@ -20,48 +20,95 @@ import com.intellij.codeInsight.documentation.DocumentationManagerUtil

                     }
                 }
             }
@@ -56,7 +52,7 @@ class LuaDocumentationProvider : AbstractDocumentationProvider(), DocumentationP
         return super.getQuickNavigateInfo(element, originalElement)
     }
 
-    override fun getDocumentationElementForLookupItem(psiManager: PsiManager, obj: Any, element: PsiElement?): PsiElement? {
+    override fun getDocumentationElementForLookupItem(psiManager: PsiManager, obj: Any, element: PsiElement): PsiElement? {
         if (obj is LuaDocumentationLookupElement) {
             return obj.getDocumentationElement(SearchContext(psiManager.project))
         }
@@ -69,29 +65,27 @@ class LuaDocumentationProvider : AbstractDocumentationProvider(), DocumentationP
 
     override fun generateDoc(element: PsiElement, originalElement: PsiElement?): String? {
