Bug 360603 - Markdown (.md) support
Summary: Markdown (.md) support
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: New backend wishes (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL: https://en.wikipedia.org/wiki/Markdown
Keywords:
: 344541 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-03-16 13:33 UTC by Thomas Fischer
Modified: 2021-06-28 15:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Fischer 2016-03-16 13:33:35 UTC
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
Comment 1 Albert Astals Cid 2017-08-24 23:05:32 UTC
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
Comment 2 null 2017-11-26 22:38:15 UTC
*** Bug 344541 has been marked as a duplicate of this bug. ***