logseq / mldoc

Another Emacs Org-mode and Markdown parser.
GNU Affero General Public License v3.0
244 stars 22 forks source link

Export markdown #24

Closed RCmerci closed 3 years ago

tiensonqin commented 3 years ago

@RCmerci To make the output markdown more similar to the standards, we might need to add two options:

  1. convert headings to unordered lists
  2. ignore properties What do you think? We can merge this PR now and add the options in a following PR.
RCmerci commented 3 years ago

convert headings to unordered lists

I'll implement this after #27 get merged ('unordered' option required in that PR).

ignore properties

yes, properties are ignored in this PR. lib/export/markdown.ml:269 And the properties syntax is far from the standards, option for it is unnecessary?

tiensonqin commented 3 years ago

And the properties syntax is far from the standards, option for it is unnecessary?

Agreed!

I'll implement this after #27 get merged ('unordered' option required in that PR).

We need to provide users a way to migrate the old files to the new unordered lists as bullets, the app will request mldoc to convert existing headings to unordered lists for later usage.

RCmerci commented 3 years ago

@tiensonqin 'heading-to-list' option is added now at mldoc, and related commit here https://github.com/logseq/logseq/pull/1444/commits/9ac04980bd98a935c0e4bb4c2c0ce276317b9406 at logseq

tiensonqin commented 3 years ago

@RCmerci awesome!