From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/13756 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: YAML closing delimiter Date: Sun, 18 Oct 2015 22:12:20 -0700 Message-ID: <20151019051220.GA15885@protagoras.berkeley.edu> References: <20151013180944.GB6891@D25Q40BGFY13.Berkeley.EDU> <08e65baa-f8d6-4437-af61-d106b36d1382@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed X-Trace: ger.gmane.org 1445231568 31806 80.91.229.3 (19 Oct 2015 05:12:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2015 05:12:48 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBQXXSGYQKGQEGHU2ONY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Oct 19 07:12:37 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yk0-f191.google.com ([209.85.160.191]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zo2kN-0007iP-SJ for gtp-pandoc-discuss@m.gmane.org; Mon, 19 Oct 2015 07:12:36 +0200 Original-Received: by ykfy204 with SMTP id y204sf27201774ykf.1 for ; Sun, 18 Oct 2015 22:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=from:date:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe; bh=ku76phtcZ1UHMhKiCT2QZ6E4i2vT6jTL6TmIbfcjKB0=; b=hCCMwoz4GxvBSnJmPGCCtkVpxnwnOn2zQE5CemJ4JVCdM8tE0YVWcbc/qTd0yVjSo/ FF1enZj8JmZiqd+tYIGrwRQS8woQnjaez73Nlr1Gqs3zHG+xzjapfuq9dlVPeIZVD6Tf JgTtBIGykMbACkhJjtrE/GXrO/PdM59UzI8YKuVHVQ41lAe7ooZkgQaRKNG9Uifi6TXf MzDTyxikRdD6XU4Mslyvc1utB5KBzXhaaisZTrJ55SJqFYC8eP5hFMbE9ImyOnftyL2M SntMslSy4uhz9+oHnH05D9qy4/rXyhlX5pa/lQpdWVu308Zjgh314PI1JvebyCDI7GFa X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=ku76phtcZ1UHMhKiCT2QZ6E4i2vT6jTL6TmIbfcjKB0=; b=YvXTZI2SDPN8Jye7oRuzSXbC39RffLqwtc+txDwphg6ut/izZoz3DXYbo/9wP91Ouh yGsijQLlCkWRUnTi+oQP71cw/wScsvjXd/LkJfzb9X4Wh78eMHLThOScn/D7UNMXMS4I 8wAIxS4d5x0ZkyJaKYReBEGJm2CH7+Bxk4+Se99XSrzyUt8Z/UMs5gxt7Qz+r88QMNAj r3JAm115gHakGgCDLYlYHKxwCnKxDfU1vRTaw/q51DwDWJgkczsjH9oYqRvvM54URL85 OSgZMe4p9eMFHrnVWaQqgGQ4XmD1btNCMaNI7Lo5xv7tVK X-Received: by 10.140.36.149 with SMTP id p21mr425778qgp.12.1445231554984; Sun, 18 Oct 2015 22:12:34 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.90.84 with SMTP id w78ls1866274qgd.20.gmail; Sun, 18 Oct 2015 22:12:34 -0700 (PDT) X-Received: by 10.31.182.10 with SMTP id g10mr24381824vkf.7.1445231554065; Sun, 18 Oct 2015 22:12:34 -0700 (PDT) Original-Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com. [209.85.220.42]) by gmr-mx.google.com with ESMTPS id el2si3141012pbb.0.2015.10.18.22.12.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Oct 2015 22:12:34 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 209.85.220.42 as permitted sender) client-ip=209.85.220.42; Original-Received: by mail-pa0-f42.google.com with SMTP id z6so18624244pas.2 for ; Sun, 18 Oct 2015 22:12:33 -0700 (PDT) X-Gm-Message-State: ALoCoQkMH2CTFPhuvhbr2lFDUCLH6cUPolJ/QkAHQErCX6BVzpaJcyjqglzUP1v7qvLqUCzft8eR X-Received: by 10.66.157.135 with SMTP id wm7mr32400590pab.22.1445231553865; Sun, 18 Oct 2015 22:12:33 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id fb1sm34002958pab.9.2015.10.18.22.12.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Oct 2015 22:12:31 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 9A12EA312; Mon, 19 Oct 2015 01:12:20 -0400 (EDT) Content-Disposition: inline In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.23 (2014-03-12) X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 209.85.220.42 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:13756 Archived-At: +++ BPJ [Oct 18 15 10:58 ]: > Try > > pandoc -t markdown [1]in.md | perl -ple's/^\.\.\.$/---/' >out.md This will probably work well enough in most cases, but what if your document has a line with `...` that isn't a YAML header closer? (E.g. in a fenced code block?) It will get converted to `---` too, won't it?