From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id PbACMjLlR1/tdwAA0tVLHw (envelope-from ) for ; Thu, 27 Aug 2020 16:54:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YHRTLTLlR1/VLwAAB5/wlQ (envelope-from ) for ; Thu, 27 Aug 2020 16:54:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C2BBD9403A5 for ; Thu, 27 Aug 2020 16:54:09 +0000 (UTC) Received: from localhost ([::1]:58762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBLA7-00040A-A5 for larch@yhetil.org; Thu, 27 Aug 2020 12:54:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBL9f-0003zf-RX for emacs-orgmode@gnu.org; Thu, 27 Aug 2020 12:53:39 -0400 Received: from mx0b-00395d01.pphosted.com ([148.163.137.170]:21344) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBL9c-0004Mo-E8 for emacs-orgmode@gnu.org; Thu, 27 Aug 2020 12:53:39 -0400 Received: from pps.filterd (m0173175.ppops.net [127.0.0.1]) by mx0b-00395d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 07RGlTiK011193; Thu, 27 Aug 2020 09:53:32 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsd.edu; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=campus; bh=2hZvyD0UFIbPv+Tgg/ddIhxGrOHI8d6i0e67z+EIKck=; b=NdBFxT7k1QTTq+dmjGGpXxmM0ELqXYwm2oRuf4TAxQ7OSUjr1GGN87aZeDZfKnshe+Y2 xorBUGM4rpqxBN2/M2TOrHOIg2wo1+S06tesI/MmF+ozl74110eFBwCW0LElU1U74GXS 0t3k+AaNgmvgd6G3hvSD0QHOQ5dxsPro38Nahk/X1AxXgii9KepFhNhjCN58wjF6Ig5o XCJJx6Whg3iFKA5gwFAuVzR7KKt1xTsfd61BOOARQ12AlStWkhwF7yMjZq8++TzTipF5 NilgcGSgqe644IS3nPdsBqG6urpwtpGs77XQGNaBI2vGUhUW4xnxL6g7NMqi0wTW9wQK aA== Received: from secdlpezp04.ucsd.edu ([40.112.251.180]) by mx0b-00395d01.pphosted.com with ESMTP id 334aqg6nxs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Aug 2020 09:53:32 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L2kMtBV9bDWUOIjSNZ7yvpKCDVo9AaCaC66oz25niupscIkqN8M+HSb0mqw6CrPygo+IxPUQpl7U4sogZdTLu4eCM8jSCKUECIdjcM9W1pKfPnXoa5+egKOdK3XZXW3gtveE3z52rjJ9NDGsnI9qaUudyYy7S8bvRpqgSjOB9aVezlTPlwIYCW1VdidC74kfYd/1iH/DvIL0YiUOd9PnQbMrp1otBBiJRh+7jjK7MGRiQVbcKHWXNWqKpbFN+Nt7tH3aCGKWp9piiMtwnhrPHGeXfQVMnCm90VDqM3oeMYjFWLnc0zi+7ZC5B8jp4pDEmQuYF+0HtTfh/p50HIZHIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2hZvyD0UFIbPv+Tgg/ddIhxGrOHI8d6i0e67z+EIKck=; b=eqt+7EgWRM7R7iFVt4TCXXG9yro+mbys7kdXtGy+Rq/6vqdk6vwvmsY/3iywgIP8q04ECAWxHryh37g2a0Z3fitN2NGfQUGU6XmUxb4CEB3eXIrDGhOUz1R4RE1i09PWIc2hyOgGIFI0Do7ptZes51Ov1gz8M+gParvGq4S+XaYmFVEsKTYoXkLOmCT0lq0L4S6eGXdrtOaOoQqg2MTz55pMfkySq8ysRpyv2Qb6+mmSGieCW+9JJeMhlpC9r8HEB7DuSgFQm6MhdPd2g0H7696d9MXq/uWnrY+Mh9ySv9mPbejKqlN526FiOFmU2ZCOJWhDlS5NVCKPDPoltx4FIg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=health.ucsd.edu; dmarc=pass action=none header.from=health.ucsd.edu; dkim=pass header.d=health.ucsd.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsdhs.onmicrosoft.com; s=selector2-ucsdhs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2hZvyD0UFIbPv+Tgg/ddIhxGrOHI8d6i0e67z+EIKck=; b=K1ujXNvxElLvDHB0bw74cJX3jFdAaOk5Mz0DsyfJwCdvTXvRvPO90dztizGXAWuY8fcPtzVJH1AVg57oS+Mx5wE4cMJkcxXgk+onGKcrSQGnJoHsLhTMQlu4ZvpGDNZ7PJxvvfWdwWeWpS9QEzG8Trf4g9U2hqr4vDb4zCa8npU= To: Naoya Yamashita Subject: Re: [PATCH] Add org-md-src-block for src-block formater Thread-Topic: [PATCH] Add org-md-src-block for src-block formater Thread-Index: AQHWfJKWcC5HAJzn5kCLhPTzv/zAgg== Date: Thu, 27 Aug 2020 16:53:29 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2600:1702:1021:b0:34a6:d1c4:461:bb8f] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e85132b5-83a6-4170-17dc-08d84aa9b99d x-ms-traffictypediagnostic: BY5PR19MB3367: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zWS+Bz5o+lXgL3xGtgeCZ6QtYDz2LgIMxEoPOUFVajS8RMDXrIqYU6cza6gxQikwzuacKhOLnpnIZB1G2GDcgmu8X7iaVcHt0aScPuJW6cqpPinjJH60jrxJPGLwl0dZ6BQ2vxmIW6w7H0m2i8p9YPmB30LpT9XbaZrmNtiXPVS8EQI8TREHzDBh3CSUYzjU+WXbwZuAUiLLgGrm9qY3v2AE5iFAiLEj//MxlKHXMCKX9D7v3FDUBGRkLvXPVqVl358UAZQgaEkj1ayOFlqlRk/z87Rc2j/SbehBEJpRv5BEQKhg7OzmoptqNW7d+khDAlK8BeuTz0Y1mTRPLl/qdM4mrUA79D8Oh6UeFFo7CPAjT7iKW6u4GOkbYv+yYIL0y93HWzRM0CgUpy+1+2KTTA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR19MB2888.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39860400002)(396003)(376002)(136003)(366004)(5660300002)(53546011)(6506007)(2616005)(186003)(8936002)(6916009)(8676002)(33656002)(83380400001)(6512007)(4326008)(66946007)(66446008)(64756008)(76116006)(2906002)(66476007)(71200400001)(66556008)(966005)(86362001)(478600001)(6486002)(786003)(75432002)(316002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: XT2dO7W89Aa62FUcBilv9APh+6jaaJDSvmlIGPInZWmTGGyYxfMrt/v+q7ELZ/P8EMJ8g9D4uaPNRx3p6M/0qxPs+R6g7NLWDIbJH9yxzzdI3u2NiV9pElGFV+huEqDbHxMo1nyG0YmdNNB8mJLNvsEobHpn/YAFsZnmpOtjPwjnoPuChKd72TM4XvHEX3UObcSGFQBPNgbpOqpGCFmZg0tpBcJHuwwEBko6z2ZAZ7Dq2yuWkfVV02YUw7Px9XvoNX8s/zKXahzMUYdlRmIqbvXhbrvu9hwHVSWgiLtKxwxszifYfMkxHiTTO32Y3VBzkX6jhO7Sq938PhfGfie+BtsYp/6JqZFuQ0DvuxbUglly2WPDu9z7z3Bxt5UFqd7i5QdQEYc7doZnO9JZXYRvjqLmhzbZA5qJT5MDTEQguV1VoDqA/vJFnXxnh9W1vqYo3u35CwetohqTSgXJsbcOPruEL3U4ev2iVRhErTAarGyucmny8KeHwSVyKcCdou8HfbPmw2g9/ZEXWJ1CRWWiqvHoF18PJ3UT39kx1c3D72ArQxRyxs8PWF4mFoKkh8c/r0NQaG1natUGaPuM8B5YA2I5UrMxsYfTsr/PHySSxZ1aAaZFLYOkch8KwUJIY9A+oEUAfI3LbKr+dwvoIXJ2qq6vlWOMEBVCaHyQGLaKLhoU9x2zANYKkFka3+heU7n+zlptqiBGe/hgUE5SI3rvUg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <843550FB8DAAE348B2D6E340C551F81C@namprd19.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: health.ucsd.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR19MB2888.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e85132b5-83a6-4170-17dc-08d84aa9b99d X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Aug 2020 16:53:29.4775 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e470d736-e7f7-41a8-8eab-dad544b2b579 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vxoA3HGp9RdFqmL7AhbrlQAo76kBBbyKBDreoCKfpBGmNliimSN3r2HW8fM4KtMKYjXfOXfFp0BsADhpHdAoUQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR19MB3367 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-08-27_08:2020-08-27, 2020-08-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 mlxlogscore=919 bulkscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 phishscore=0 mlxscore=0 clxscore=1011 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008270125 Received-SPF: pass client-ip=148.163.137.170; envelope-from=ccberry@health.ucsd.edu; helo=mx0b-00395d01.pphosted.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/27 12:53:33 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" Reply-to: "Berry, Charles" From: "Berry, Charles" via "General discussions about Org-mode." X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=ucsd.edu header.s=campus header.b=NdBFxT7k; dkim=fail (rsa verify failed) header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=K1ujXNvx; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 1.99 X-TUID: 5GcjBPMtc4ty You might want to browse the ox-ravel repository[1]. It provides a collection of exporters that support reformatting src blocks = and inline src blocks for a variety of output formats (including markdown). Basically, it will produce a derived backend that adds source block reforma= tting to whatever the parent backend provides. It is aimed at R flavored exports (knitr, Rmarkdown, Sweave), but customiza= ble. One can, for example, allow emacs-lisp and shell src blocks to execute= during export, but format python, C++ and R blocks for markdown and subseq= uent processing. It is easy to apply to any markdown exporter See ox-ravel.org for details on customization. It has plenty of stops and whistles even without customization. Check out t= he examples, such as demos.org and markdown.org. HTH, Chuck =20 [1] https://github.com/chasberry/orgmode-accessories/blob/org-9-plus/markdo= wn.org > On Aug 26, 2020, at 10:26 PM, Naoya Yamashita wrote: >=20 > Hi, > I found `ox-md` exporter drop src-block language information. > My patch fixes the behavior; to embed src-block language information > using markdown src block grammar. >=20 > 1. Open some buffer > 2. Tnsert below code > 3. Turn on `org-mode` > 4. `C-c C-e m M` (export as markdown in temp buffer) >=20 > ## org source > ```org > #+begin_src python > print(1 + 2) > #+end_src >=20 > #+begin_src emacs-lisp > (print "hello") > #+end_src >=20 > #+begin_src > something source code > #+end_src > ``` >=20 > ## before > ```markdown >=20 > # Table of Contents >=20 >=20 >=20 > print(1 + 2) >=20 > (print "hello") >=20 > something source code >=20 > ``` >=20 > ## after > ```markdown >=20 > # Table of Contents >=20 >=20 >=20 > ```python > print(1 + 2) > ``` >=20 > ```emacs-lisp > (print "hello") > ``` >=20 > ``` > something source code > ``` >=20 > ``` > <0001-Add-org-md-src-block-for-src-block-formater.patch>