timonwong / OmniMarkupPreviewer

Sublime Text 2&3 plugin to live preview markup files, supported (not limited to) markup formats are markdown, reStructuredText, WikiCreole and textile.
MIT License
500 stars 74 forks source link

A problem #112

Open HytionKing opened 7 years ago

HytionKing commented 7 years ago

The task list statements can not be resolved!

The example codes:

However, the OmniMarkupPreview can not show that!

chdsbd commented 7 years ago

The task list you are asking about is a Github Flavored Markdown feature. I don't think this project has any explicit support for this markdown version.

akaleeroy commented 6 years ago

I was able to add this feature to OmniMarkupPreviewer myself. You have to add the markdown-checklists extension for MarkdownRenderer. Unfortunately the original author, @tobiashochguertel, removed the repo from GitHub.

I don't remember how I installed the extension exactly but it involved copying over these files:

Sublime Text\Data\Packages\OmniMarkupPreviewer\OmniMarkupLib\Renderers\libs\markdown\extensions\checklists.py
Sublime Text\OmniMarkupPreviewer\public\checklists.js
Sublime Text\OmniMarkupPreviewer\public\checklists.css
Sublime Text\OmniMarkupPreviewer\templates\checklists.tpl
Sublime Text\OmniMarkupPreviewer\templates\checklists-export.tpl

and adding "checklists" to the MarkdownRenderer extensions list in OmniMarkupPreviewer.sublime-settings

{
  "renderer_options-MarkdownRenderer": {
    "extensions": ["extra", "codehilite", "toc", "nl2br", "strikeout", "superscript", "smarty", "checklists"]
  }
}
chdsbd commented 6 years ago

For posterity, there is a clone of the markdown-checklists repo here: https://github.com/SCP-028/markdown-checklists