From: Tim Quelch <firstname.lastname@example.org> To: email@example.com Subject: Configuring text export block output Date: Thu, 17 Sep 2020 11:06:38 +1000 [thread overview] Message-ID: <firstname.lastname@example.org> (raw) Hi all, Is there a way to configure how text is exported in ascii? For example if I have a source block #+begin_src python Some code here with multiple lines #+end_src With `org-ascii-export-as-ascii` the above block gives: ,---- | Some code here | with multiple lines `---- I don't really like this as the '|' at the start of the lines make it annoying to copy and paste. Is there a way to configure the export to give something surrounded by backticks? ```python Some code here with multiple lines ``` I've had a look into the available `org-ascii-*` customise variables and I couldn't see anything which looked to give this functionality. Preferably I'd love a way if I could configure this locally and programatically, as in some contexts I might still want the "prettier" output of the default, but in other contexts I might want the more "practical" output of backticks. Side question: Perhaps what I am wanting can be achieved with markdown export, however it seems that the default markdown exporter exports code indented. This has the same problem of being frustrating to copy-paste. Is there a way to configure the md exporter to use fenced code blocks? Thanks, Tim Quelch
next reply other threads:[~2020-09-17 1:06 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-09-17 1:06 Tim Quelch [this message] 2020-09-17 1:42 ` Kyle Meyer 2020-09-17 2:17 ` Tim Quelch
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://www.orgmode.org/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --subject='Re: Configuring text export block output' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).