From Wikipedia: "Markdown is a lightweight markup language with plain text formatting syntax designed so that it can be converted to HTML and many other formats using a tool by the same name. Markdown is often used to format readme files, for writing messages in online discussion forums, and to create rich text using a plain text editor." Relevance: Markdown is getting increasingly popular, especially in Web-base/supported development such as done on Github. Code: Numerous libraries to convert Markdown into other formats like HTML. As an example how Markdown is rendered in a Qt application, please see CuteMarkEd (https://github.com/cloose/CuteMarkEd). Implementation: In KDE4 times, I would have suggested a KPart which makes use of an existing third-party library for the Markdown-to-HTML process and then rendering the result in a KHTML part (or just QTextDocument). However, as Konqueror for KF5 doesn't seem to happen, Okular is the next best choice as a viewer. Reproducible: Always
Git commit 4931385777ce9fa55c8b52f5009603b2b6d58d7f by Albert Astals Cid, on behalf of Julian Wolff. Committed on 24/08/2017 at 23:05. Pushed by aacid into branch 'master'. add markdown support Summary: Adds support for Markdown documents Test Plan: Open a Markdown (.md) document in Okular Reviewers: #okular, aacid Reviewed By: #okular, aacid Subscribers: michaelweghorn, aacid Tags: #okular Differential Revision: https://phabricator.kde.org/D7382 A +36 -0 cmake/modules/FindDiscount.cmake M +11 -0 generators/CMakeLists.txt A +22 -0 generators/markdown/CMakeLists.txt A +2 -0 generators/markdown/Messages.sh A +177 -0 generators/markdown/converter.cpp [License: GPL (v2+)] A +47 -0 generators/markdown/converter.h [License: GPL (v2+)] A +19 -0 generators/markdown/debug_md.h [License: GPL (v2+)] A +37 -0 generators/markdown/generator_md.cpp [License: GPL (v2+)] A +27 -0 generators/markdown/generator_md.h [License: GPL (v2+)] A +26 -0 generators/markdown/libokularGenerator_md.json A +13 -0 generators/markdown/okularApplication_md.desktop A +7 -0 generators/markdown/okularMd.desktop A +14 -0 generators/markdown/org.kde.mobile.okular_md.desktop A +13 -0 generators/markdown/org.kde.okular-md.metainfo.xml M +1 -0 okular.categories https://commits.kde.org/okular/4931385777ce9fa55c8b52f5009603b2b6d58d7f
*** Bug 344541 has been marked as a duplicate of this bug. ***