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 TwLJJol4mV+6SwAA0tVLHw (envelope-from ) for ; Wed, 28 Oct 2020 13:56:25 +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 CPoSIol4mV9MfQAAB5/wlQ (envelope-from ) for ; Wed, 28 Oct 2020 13:56:25 +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 4C0CE940237 for ; Wed, 28 Oct 2020 13:56:25 +0000 (UTC) Received: from localhost ([::1]:37586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXlw8-0007hH-3N for larch@yhetil.org; Wed, 28 Oct 2020 09:56:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXltY-0007es-2c for emacs-orgmode@gnu.org; Wed, 28 Oct 2020 09:53:45 -0400 Received: from mout.gmx.net ([212.227.17.20]:53315) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXltT-000392-RJ for emacs-orgmode@gnu.org; Wed, 28 Oct 2020 09:53:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1603893215; bh=9Ar4CflmCNsMy2frl1xdMgWkpDqrOiqXOP2CYgSltew=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=LxrRu+m7Jb0XgCJ5zDr0+uux1iWoj7KxXDLOO/R5BzY8SUdkcxFfT6Cg1mlxSlHgu Uz8Isgi6/MiJXMwIf9rwCzVYem9OGILIReMbp0imxKBojBbMQWIuD1YD95dYmFr36o hp2XUXTXafyIGceaan88+HrmuIvQy+cGOi1klXjU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.175.209] ([87.139.53.30]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MsHnm-1kEb4u3m8o-00tl6W for ; Wed, 28 Oct 2020 14:53:34 +0100 Subject: Re: preserving (zero-space) indenting in begin_src when exporting/publishing (to mark-down) To: emacs-orgmode@gnu.org References: <86a6w6fr3l.fsf@login.ifi.uio.no> From: Julius Dittmar Message-ID: <35d0a538-4841-ec47-48cd-7071afc60726@gmx.de> Date: Wed, 28 Oct 2020 14:53:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <86a6w6fr3l.fsf@login.ifi.uio.no> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:tw/a0N2kbghFZT4aWU0KKJI8umoKpBn+xQI2QmDDvG8Aok7X/lJ msO+u3+0zmu2F9qzeKfxqNwBte7vuZmbz+SJQ49BRg3q7kz5kZmWoMVE9OrXenOYaRnpXyi qd2qo3XiBoR9fs+mrPBPCPn4EQGc+eAlOKnCpWEAMujfNCUUAFN0T/5KXrfN4FYa1DoSo3C lmJtuX4SxBMupQQOII39g== X-UI-Out-Filterresults: notjunk:1;V03:K0:5FYA813B1tg=:pWou9wqb+BghubQcivYYD8 z/L2bn3wtAGPTrd6fzcoVq5GRrrd9ZJXX+fI+pWqdsqyCGmolVWwcAW6zmUj0RIMTSqqnSLEf Ko+y4dHdMxriykxIHxDx1+aDxgb1pgblmxXcMlTUvMcLI+eJsVA9Z6+KkWgiYjhZAxU13VCw8 woPv2YQtI2wQzp2LOJjJqz0QJctDVXczUplfXKcQBJLAN4hXY1zbIsPIK3ZNKO55LFbQB46w4 ZmgWL1jwjEapUTcgu6Iko8yCg0FjweWHk5+xcw+eqcdPn2tdhyDF4qGlYb46nagqlDR3+2cpo xYA9SYL95E8HXw5OsFgpiIaJCuEPGGtSf4++qhdaIgAcBnqEQP9vp+1a1dJflDKQOv+OYI6LF 3T2EHW3RLEdZRgTq/yYpfYm+HqaEC8uLzZzOQng9LPtZ4LaufEpkPeiMwqDtqufvrHwV5J8Cc mMqtyDb6JtkUp6AwmcbJTwjWDWZeGmTMsuZo/qfutLJkm/ymhghjPLeDf2lAgo/lcQbgvLska llDeXmHdK/u9/EcbGBIesmlP0QbIYsZJzOdotksyPdli3yMsJTdXzWwcYuCX9LZcnBUxDRdCs Oh8Oh850BX0b5BhmAA6NiQ4ImEShYwun4j8h50XCC4AQPixlkNO7AOIhgW+IiuIIdDBVwd547 QkYfM/XuZRBA3voo7lXhaUEAbJoCWaw+lPAsyKvSJXJPXeyFJrup8uSpbEb+7y978elu3C1R3 eboe5bKGRI331irIPiw8hZ3eQiPUE3sFnwxrQg9PRxJFfomBZRJbvTbxMgfWTwy7JeZKcoAra S0Tmd19dxIbrlh5FlBnXAS4bufU5cQAI71B9zTuRc09SWzjOX7BhbU6cC8hhy1p1TvYmA78Tz 9a13filPRqxBwLmTtTAw== Received-SPF: pass client-ip=212.227.17.20; envelope-from=Julius.Dittmar@gmx.de; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/28 09:53:35 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, GB_FREEMAIL_DISPTO=0.001, NICE_REPLY_A=-0.921, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=LxrRu+m7; 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.21 X-TUID: W7TE8Ab3DHOe Hi Martin, if I understand correctly, you do not want to have a section that quotes source code, but literal source code. As far as I understand, that means using #+begin_export markdown ... #+end_export block, not #+begin_src markdown ... #+end_src block. That block will then be ignored in any other export format, and used as-is in markdown export. (I hope "markdown" is the correct label, I did not test it.) Hope that helps, Julius Am 28.10.20 um 13:54 schrieb Martin Steffen: > I have troubles to export (or publish) some orgfiles, which contain > ``src'' snippets intended for markdown. The (for me) unwelcome behavior > is the same for org-export and org-publish, I guess, since it has the > same core reason. > > The problem currently for me is for the markdown format. I have seen > similar behavior for other exports, though did not care since it for > those situations, it was/is ``good enough''. Now, however, I do some > export to md, to be used for Jekyll webpages, and it's no longer good > enough. > > For concreteness sake: I got some section > > > #+begin_src markdown > --- > layout: default > title: Some Title > description: Some information > --- > #+end_src > > > which is exported to md literally, but with 4 leading spaces as > indentation, like > > --- > layout: default > title: Some Title > description: Some information > --- > > That's insofar unwelcome, as Jekyll wants those pieces of information > without indentation.