From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jake Romer Subject: ox-md.el: Export TOC and Footnotes as Markdown rather than HTML Date: Sun, 7 Aug 2016 21:31:37 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=94eb2c056550d33c6905398561b0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWZQ9-00015Q-6C for emacs-orgmode@gnu.org; Sun, 07 Aug 2016 21:32:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWZQ7-0001Rr-BI for emacs-orgmode@gnu.org; Sun, 07 Aug 2016 21:32:00 -0400 Received: from mail-ua0-x22c.google.com ([2607:f8b0:400c:c08::22c]:33013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWZQ7-0001Rf-2u for emacs-orgmode@gnu.org; Sun, 07 Aug 2016 21:31:59 -0400 Received: by mail-ua0-x22c.google.com with SMTP id 74so50904408uau.0 for ; Sun, 07 Aug 2016 18:31:58 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --94eb2c056550d33c6905398561b0 Content-Type: multipart/alternative; boundary=94eb2c056550d33c6505398561ae --94eb2c056550d33c6505398561ae Content-Type: text/plain; charset=UTF-8 Hi all, I notice that in Org 8.3, `org-md-export-as-markdown` and `org-md-export-to-markdown` render a document's Table of Contents and Footnotes sections as HTML rather than Markdown. I have a couple of patches that change this behavior so that both are rendered as Markdown. I'd love to hear any thoughts or suggestions for improvement if you think this would be useful to include in ox-md.el. A description of the changes is attached in the accompanying Org doc. Thanks! --94eb2c056550d33c6505398561ae Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

I notice that in Org 8.3, `org-= md-export-as-markdown` and `org-md-export-to-markdown` render a document= 9;s Table of Contents and Footnotes sections as HTML rather than Markdown.<= /div>

I have a couple of patches that change this behavi= or so that both are rendered as Markdown. I'd love to hear any thoughts= or suggestions for improvement if you think this would be useful to includ= e in ox-md.el.

A description of the changes is att= ached in the accompanying Org doc.

Thanks!
--94eb2c056550d33c6505398561ae-- --94eb2c056550d33c6905398561b0 Content-Type: application/octet-stream; name="render-toc-and-fn-as-md.org" Content-Disposition: attachment; filename="render-toc-and-fn-as-md.org" Content-Transfer-Encoding: base64 X-Attachment-Id: f_irld1rgw0 KiBTdW1tYXJ5IG9mIENoYW5nZXMKIytUSVRMRTogUmVuZGVyIFRPQyBhbmQgRm9vdG5vdGVzIGFz IE1hcmtkb3duCiMrQVVUSE9SOiBKYWtlIFJvbWVyCiMrRU1BSUw6IGprcm1yQGdpdGh1Yi5jb20K IytEQVRFOiAyMDE2LTA4LTA3CgoKVGhlIGluY2x1ZGVkIHBhdGNoIHVwZGF0ZXMgb3gtbWQuZWwg c28gdGhhdCBpdCBnZW5lcmF0ZXMgVGFibGUgb2YgQ29udGVudHMgYW5kCkZvb3Rub3RlcyBzZWN0 aW9ucyBpbiBNYXJrZG93bi4gQ3VycmVudGx5IGl0IGdlbmVyYXRlcyB0aGVzZSBpbiBIVE1MLgoK KiBSZW5kZXIgZm9vdG5vdGVzIHNlY3Rpb24gYXMgTWFya2Rvd24KQW4gZXhhbXBsZSBmb290bm90 ZXMgc2VjdGlvbiwgaW4gdGhlIE9yZyBzb3VyY2U6CgojK0JFR0lOX1NSQyBvcmcKICogRm9vdG5v dGVzCgogW2ZuOjFdIGZvciBleGFtcGxlLCB3aGVuIGFuIGlzc3VlIGhhcyByZWNlaXZlZCBubyBh Y3Rpdml0eSBpbiBvdmVyIHRocmVlIG1vbnRocy4KIChXZSBjYW4gcGVyaGFwcyBtYWtlIHRoYXQg dGhyZXNob2xkIGNvbmZpZ3VyYWJsZS4pCgogW2ZuOjJdIEFub3R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4gdHlwZSByYXcpIGluIGZuLWFsaXN0IGNvbGxlY3QKICAgICAgICAgICAgICAg IChjb25zIG4gKG9yZy10cmltIChvcmctZXhwb3J0LWRhdGEgcmF3IGluZm8pKSkpKSkKICAgICh3 aGVuIGZuLWFsaXN0CiAgICAgIChmb3JtYXQKICAgICAgIChvcmctbWQtZm9vdG5vdGUtc2VjdGlv bi1oZWFkZXIgaW5mbykKICAgICAgIChmb3JtYXQKICAgICAgICAiXG4lc1xuIgogICAgICAgICht YXBjb25jYXQKICAgICAgICAgKGxhbWJkYSAoZm4pCiAgICAgICAgICAgKGxldCAoKG4gKGNhciBm bikpIChkZWYgKGNkciBmbikpKQogICAgICAgICAgICAgKGZvcm1hdAogICAgICAgICAgICAgICIl cyAlc1xuIgogICAgICAgICAgICAgIChmb3JtYXQKICAgICAgICAgICAgICAgKHBsaXN0LWdldCBp bmZvIDptZC1mb290bm90ZS1mb3JtYXQpCiAgICAgICAgICAgICAgIChvcmctaHRtbC0tYW5jaG9y CiAgICAgICAgICAgICAgICAoZm9ybWF0ICJmbi4lZCIgbikKICAgICAgICAgICAgICAgIG4KICAg ICAgICAgICAgICAgIChmb3JtYXQgIiBocmVmPVwiI2Zuci4lZFwiIiBuKQogICAgICAgICAgICAg ICAgaW5mbykpCiAgICAgICAgICAgICAgZGVmKSkpCiAgICAgICAgIGZuLWFsaXN0CiAgICAgICAg ICJcbiIpKSkpKSkKIytFTkRfU1JDCgojK0JFR0lOX1NSQyBlbWFjcy1saXNwCjs7OzsgRm9vdG5v dGVzIFNlY3Rpb24gSGVhZGVyCgooZGVmdW4gb3JnLW1kLWZvb3Rub3RlLXNlY3Rpb24taGVhZGVy IChpbmZvKQogICJSZW5kZXJzIGEgdGVtcGxhdGUgZm9yIHRoZSBmb290bm90ZXMgc2VjdGlvbiBo ZWFkZXIgaW4gdGhlIHByZWZlcnJlZCBzdHlsZS4KSU5GTyBpcyB1c2VkIGFzIGEgY29tbXVuaWNh dGlvbiBjaGFubmVsLiI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bykpCiAgICAgICAgIChsZXZlbCAoMS0gKG9yZy1lbGVtZW50 LXByb3BlcnR5IDpsZXZlbCBoZWFkbGluZSkpKQogICAgICAgICAoaW5kZW50IChjb25jYXQgKG1h a2Utc3RyaW5nICgqIGxldmVsIDIpID8gKSkpCiAgICAgICAgIChhbmNob3IgKG9yIChvcmctZWxl bWVudC1wcm9wZXJ0eSA6Q1VTVE9NX0lEIGhlYWRsaW5lKQogICAgICAgICAgICAgICAgICAgICAo b3JnLWV4cG9ydC1nZXQtcmVmZXJlbmNlIGhlYWRsaW5lIGluZm8pKSkpCiAgICAoY29uY2F0IGlu ZGVudCAiLSBbIiB0aXRsZSAiXSIgIigjIiBhbmNob3IgIikiKSkpCiMrRU5EX1NSQwoKKiogQWZ0 ZXIKIytCRUdJTl9TUkMgbWFya2Rvd24KLSBbRmVhdHVyZTogSXNzdWUgUmVhcGluZ10oI29yZ2hl YWRsaW5lMSkKLSBbTW90aXZhdGlvbl0oI29yZ2hlYWRsaW5lMikKLSBbU2NlbmFyaW9zXSgjb3Jn aGVhZGxpbmUzKQotIFtUYXNrc10oI29yZ2hlYWRsaW5lNCkKLSBbUHJpb3IgYXJ0XSgjb3JnaGVh ZGxpbmU4KQogIC0gW09yZyBzZXR0aW5ncyBwYW5lbCBsZWZ0IG5hdl0oI29yZ2hlYWRsaW5lNSkK ICAtIFtWaWV3aW5nIGFuIG9yZ2FuaXphdGlvbidzIE1lbWJlciBwcml2aWxlZ2VzXSgjb3JnaGVh ZGxpbmU2KQogIC0gW1VwZGF0aW5nIGFuIG9yZ2FuaXphdGlvbidzIFJlcG9zaXRvcnkgY3JlYXRp b24gc2V0dGluZ10oI29yZ2hlYWRsaW5lNykKLSBbSW1wbGVtZW50YXRpb24gbm90ZXNdKCNvcmdo ZWFkbGluZTkpCiMrRU5EX1NSQwo= --94eb2c056550d33c6905398561b0 Content-Type: application/octet-stream; name="render-toc-and-fn-as-md.patch" Content-Disposition: attachment; filename="render-toc-and-fn-as-md.patch"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gICAgKGZuLWFsaXN0CisgICAgICAgICAgKGxvb3AgZm9yIChu IHR5cGUgcmF3KSBpbiBmbi1hbGlzdCBjb2xsZWN0CisgICAgICAgICAgICAgICAgKGNvbnMgbiAo b3JnLXRyaW0gKG9yZy1leHBvcnQtZGF0YSByYXcgaW5mbykpKSkpKQorICAgICh3aGVuIGZuLWFs aXN0CisgICAgICAoZm9ybWF0CisgICAgICAgKG9yZy1tZC1mb290bm90ZS1zZWN0aW9uLWhlYWRl ciBpbmZvKQorICAgICAgIChmb3JtYXQKKyAgICAgICAgIlxuJXNcbiIKKyAgICAgICAgKG1hcGNv bmNhdAorICAgICAgICAgKGxhbWJkYSAoZm4pCisgICAgICAgICAgIChsZXQgKChuIChjYXIgZm4p KSAoZGVmIChjZHIgZm4pKSkKKyAgICAgICAgICAgICAoZm9ybWF0CisgICAgICAgICAgICAgICIl cyAlc1xuIgorICAgICAgICAgICAgICAoZm9ybWF0CisgICAgICAgICAgICAgICAocGxpc3QtZ2V0 IGluZm8gOm1kLWZvb3Rub3RlLWZvcm1hdCkKKyAgICAgICAgICAgICAgIChvcmctaHRtbC0tYW5j aG9yCisgICAgICAgICAgICAgICAgKGZvcm1hdCAiZm4uJWQiIG4pCisgICAgICAgICAgICAgICAg bgorICAgICAgICAgICAgICAgIChmb3JtYXQgIiBocmVmPVwiI2Zuci4lZFwiIiBuKQorICAgICAg ICAgICAgICAgIGluZm8pKQorICAgICAgICAgICAgICBkZWYpKSkKKyAgICAgICAgIGZuLWFsaXN0 CisgICAgICAgICAiXG4iKSkpKSkpCisKKwogOzs7OyBUZW1wbGF0ZQoKIChkZWZ1biBvcmctbWQt aW5uZXItdGVtcGxhdGUgKGNvbnRlbnRzIGluZm8pCkBAIC00NzQsNyArNTM2LDE1IEBAIENPTlRF TlRTIGlzIHRoZSB0cmFuc2NvZGVkIGNvbnRlbnRzIHN0cmluZy4gIElORk8gaXMgYSBwbGlzdAog aG9sZGluZyBleHBvcnQgb3B0aW9ucy4iCiAgIDs7IE1ha2Ugc3VyZSBDT05URU5UUyBpcyBzZXBh cmF0ZWQgZnJvbSB0YWJsZSBvZiBjb250ZW50cyBhbmQKICAgOzsgZm9vdG5vdGVzIHdpdGggYXQg bGVhc3QgYSBibGFuayBsaW5lLgotICAob3JnLXRyaW0gKG9yZy1odG1sLWlubmVyLXRlbXBsYXRl IChjb25jYXQgIlxuIiBjb250ZW50cyAiXG4iKSBpbmZvKSkpCisgIChsZXQqICgoZGVwdGggKHBs aXN0LWdldCBpbmZvIDp3aXRoLXRvYykpCisgICAgICAgICAoaGVhZGxpbmVzIChhbmQgZGVwdGgg KG9yZy1leHBvcnQtY29sbGVjdC1oZWFkbGluZXMgaW5mbyBkZXB0aCkpKQorICAgICAgICAgKHRv Yy1zdHJpbmcgKG9yZy1odG1sLXRvYyBkZXB0aCBpbmZvKSkKKyAgICAgICAgICh0b2MtdGFpbCAo aWYgaGVhZGxpbmVzICJcblxuIiAiIikpCisgICAgICAgICAoZm9vdG5vdGVzIChvcmctbWQtZm9v dG5vdGUtc2VjdGlvbiBpbmZvKSkpCisgICAgKG9yZy10cmltIChjb25jYXQgdG9jLXN0cmluZwor ICAgICAgICAgICAgICAgICAgICAgIHRvYy10YWlsCisgICAgICAgICAgICAgICAgICAgICAgY29u dGVudHMKKyAgICAgICAgICAgICAgICAgICAgICBmb290bm90ZXMpKSkpCgogKGRlZnVuIG9yZy1t ZC10ZW1wbGF0ZSAoY29udGVudHMgaW5mbykKICAgIlJldHVybiBjb21wbGV0ZSBkb2N1bWVudCBz dHJpbmcgYWZ0ZXIgTWFya2Rvd24gY29udmVyc2lvbi4KLS0KMi45LjIKCgpGcm9tIDMxMDkxZTRi ZDRiNDhkMTM5NDQ4MmExNTQyZTZkOTBhYmYwNGIzMmQgTW9uIFNlcCAxNyAwMDowMDowMCAyMDAx CkZyb206IEpha2UgUm9tZXIgPGprcm1yQGdpdGh1Yi5jb20+CkRhdGU6IFN1biwgNyBBdWcgMjAx NiAxNjoxNTo1MC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aGVhZGxpbmUgaW5mbykp KSkKKyAgICAoY29uY2F0IGluZGVudCAiLSBbIiB0aXRsZSAiXSIgIigjIiBhbmNob3IgIikiKSkp CisKKwogOzs7OyBUZW1wbGF0ZQoKIChkZWZ1biBvcmctbWQtaW5uZXItdGVtcGxhdGUgKGNvbnRl bnRzIGluZm8pCkBAIC01MzgsNyArNTUxLDcgQEAgaG9sZGluZyBleHBvcnQgb3B0aW9ucy4iCiAg IDs7IGZvb3Rub3RlcyB3aXRoIGF0IGxlYXN0IGEgYmxhbmsgbGluZS4KICAgKGxldCogKChkZXB0 aCAocGxpc3QtZ2V0IGluZm8gOndpdGgtdG9jKSkKICAgICAgICAgIChoZWFkbGluZXMgKGFuZCBk ZXB0aCAob3JnLWV4cG9ydC1jb2xsZWN0LWhlYWRsaW5lcyBpbmZvIGRlcHRoKSkpCi0gICAgICAg ICAodG9jLXN0cmluZyAob3JnLWh0bWwtdG9jIGRlcHRoIGluZm8pKQorICAgICAgICAgKHRvYy1z dHJpbmcgKG9yIChtYXBjb25jYXQgJ29yZy1tZC1mb3JtYXQtdG9jIGhlYWRsaW5lcyAiXG4iKSAi IikpCiAgICAgICAgICAodG9jLXRhaWwgKGlmIGhlYWRsaW5lcyAiXG5cbiIgIiIpKQogICAgICAg ICAgKGZvb3Rub3RlcyAob3JnLW1kLWZvb3Rub3RlLXNlY3Rpb24gaW5mbykpKQogICAgIChvcmct dHJpbSAoY29uY2F0IHRvYy1zdHJpbmcKLS0KMi45LjIK --94eb2c056550d33c6905398561b0--