Markdown is a commonly used text-based format with simple(ish) direct formatting and a few structural elements (e.g. tables, block-quotes, code blocks). It is relatively popular, especially on web-based platforms (e.g. discourse installation, GitHub & GitLab). See: https://en.wikipedia.org/wiki/Markdown It would be useful if we could open a Markdown document in Writer, and get it "rendered" with appropriate styles. i.e. we should be able to import Markdown into Writer. Note: * Bug 160734 regards the ability to export to Markdown.
(In reply to Buovjaga from comment #8 on bug 160734) > (In reply to Antonio Vidal from comment #4 on bug 160734) > > > Markdown support. But as you said, the challenge is picking a flavour > > > > Would propose Markdown-it due to being 100% compliant with CommonMark, > > secure by Google, and extensible with plugins > > > > https://github.com/markdown-it/markdown-it > > Python port: https://markdown-it-py.readthedocs.io/en/latest/# > > Experimental Rust port: https://github.com/chrisjsewell/markdown-it-pyrs > > > > Table and strikethrough from GFM flavour are implemented natively, and more > > features can be added via extensions > > https://markdown-it-py.readthedocs.io/en/latest/plugins.html > > Those are not for export, but for import. For import, an easier integration > would probably be this C-based lib: https://github.com/mity/md4c > > Note that when dealing with importing, valid Markdown files can contain any > HTML. 1. Are you sure Markdown can contain _any_ HTML rather than just _some_ HTML? 2. Regardless - we could start with an input filter that doesn't support HTML, or with very limited HTML support (e.g. tags like a, b, em). This would already be useful.
(In reply to Eyal Rozenberg from comment #1) > 1. Are you sure Markdown can contain _any_ HTML rather than just _some_ HTML? https://spec.commonmark.org/0.31.2/#html-blocks I sure have used any HTML I like in Markdown content when building the new LibreOffice site with Hugo.
*** Bug 165590 has been marked as a duplicate of this bug. ***
890d2c865215f8a679fbb8e0644e3f73c4c4bb0c 58cfa7b1a5f44b2dbd945db4fd8261b7227c33b6
(In reply to Adolfo Jayme Barrientos from comment #4) > 890d2c865215f8a679fbb8e0644e3f73c4c4bb0c > 58cfa7b1a5f44b2dbd945db4fd8261b7227c33b6 Can you elaborate on what exactly the state of support for Markdown input is, after these commits? And which flavors of Markdown are supported?
(In reply to Eyal Rozenberg from comment #5) > (In reply to Adolfo Jayme Barrientos from comment #4) > > 890d2c865215f8a679fbb8e0644e3f73c4c4bb0c > > 58cfa7b1a5f44b2dbd945db4fd8261b7227c33b6 > > Can you elaborate on what exactly the state of support for Markdown input > is, after these commits? And which flavors of Markdown are supported? As seen in the commits, https://github.com/mity/md4c is used. Even Writer tables are supported. Stay tuned for more as there is still plenty of time left in the GSoC project.
(In reply to Buovjaga from comment #6) Is there an outline of the GSoC project which could be attached or linked to from here? Anyway, added (Adlopho) Jayme to the CC list.
(In reply to Eyal Rozenberg from comment #7) > (In reply to Buovjaga from comment #6) > > Is there an outline of the GSoC project which could be attached or linked to > from here? https://wiki.documentfoundation.org/Development/GSoC/Ideas#Import_Markdown_files_into_LibreOffice_Writer (it will be moved out once successful)
Ujjawal Kumar committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/efc7ceae33c016fbbc2aa43cd53a611588d66eed tdf#162153 Fixed member variable initialization bug. It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Ujjawal Kumar committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/bec29bda906fe077781da3744f8b1d3fab32b574 tdf#162153 Unit tests for Markdown Filter It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Ujjawal Kumar committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/9b3b3ea0408f77baa45ef9370cc9a18f4097c468 tdf#162153 Register Markdown filter in registry and set it as preferred filter It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Ujjawal Kumar committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/982e4f71a36ab342d7b1edcb56437e03aa9a0039 tdf#162153 Fix formatting inconsistency. It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Ujjawal Kumar committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/b67c15ebe510394d3f75ebfdd21b27f468437699 tdf#162153 Markdown Filter: Add unit test for tables It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Ujjawal Kumar committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/f8c2fbdbceac74f0a9cb9ec7235c6e7a5ef4f081 tdf#162153 Introduce clipboard support for Markdown format. It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Ujjawal Kumar committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/8c49b50c20527a971fa5f74e09cc07eb1e8ead0f tdf#162153 Introduce a new dialog for pasting plain text as Markdown It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.