Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 'marked.js' and add bootstrap table support #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update 'marked.js' and add bootstrap table support #53

wants to merge 1 commit into from

Conversation

AdemJensen
Copy link

Changes:

  • Updated the marked.js from 2013 version to 2019 version. (The markdown grammar is now more strict than the original version)
  • Added bootstrap table support so that the markdown editor can finally create a decent table using markdown grammar(Add class "table-responsive", "table-hover", "table-bordered" to the table being processed).

Please notice that once this update is applied, the topic sign '#' must have a space before the content, like this:

  • ##[SPACE]Topic2 is approved.
  • ##Topic2 is invalid.

@cebarobot
Copy link
Member

Maybe we have to change the highlight script too.

也许我们还得改一下 Markdown 高亮的脚本去支持这个特性……

@cebarobot
Copy link
Member

cebarobot commented Oct 14, 2019

新版本的 marked.js 把 \% \\ 之类的符号全部都转义了……这直接导致 MathJax一定程度的瘫痪……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants