From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11893 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Idea: Support for centred block-level elements, without necessarily needing to revise pandoc Date: Sat, 31 Jan 2015 22:45:34 -0800 Message-ID: <20150201064534.GB12964@localhost.hsd1.ca.comcast.net> References: <2a08b6a8-d381-45bc-9361-3bf402544fb0@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 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422773149 18753 80.91.229.3 (1 Feb 2015 06:45:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2015 06:45:49 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBG4XW6TAKGQEIYTMJQA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Feb 01 07:45:49 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 1YHoI0-0002as-Oh for gtp-pandoc-discuss@m.gmane.org; Sun, 01 Feb 2015 07:45:48 +0100 Original-Received: by mail-yk0-f191.google.com with SMTP id 19sf3981993ykq.8 for ; Sat, 31 Jan 2015 22:45:47 -0800 (PST) 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:content-transfer-encoding :in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=D3PmWc7VjT+++p+0Nsd05/isFRJr3zxcIW/YLdlxukw=; b=rpXL3j+p0q+IH+c6knBPZuS9mXtd/wnGpZFflSOoRKCSwmJt4hMQB7aYEpc74aRqLK 5h+DkxXoXQ5W1tAa/jHWku2zcxg0ekCq04zOVr7Ee2qSAYbM4F2h+xXB8i/odEisz8kq sqoAlXArJ8XyOPlGVLx9jUroqRr5QMMeQgm5jyHr2N5lkH0/6ieN/9WG+bRZyZgiRfBh SYnmUrwOqkVVZPbSjZU0lXsSAdCcadVso5PcyR0wzKzDsU3vm926aXXHI5deSZqei0Kb 6DUT6hEmUZnWYkm4qIrO7w6JbhoObwfl4n77KsYS8dqSEe8hDWYI1Thni1k3QQ2yy 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 :content-transfer-encoding:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=D3PmWc7VjT+++p+0Nsd05/isFRJr3zxcIW/YLdlxukw=; b=B5ezYT10QooUFyWXpHqpQrIn8NGv+fhurWHoXHv482UFQN2ISStVj1xvk24F9Wl9u5 cz81ebevgUM+5rFPCUCGedCYevmasoztaZPiFSk84nrG9iYXlMtxYhUQXXgTHmpnZzvw +w/PQGkuTzdP3jT3j9cafxfEQSnOuBjZxfGolsaSIHJgE+JztNXh/xfOXOqekW4kbhXF 8znRxsXkl7YxP+oCQDjZgNd10tj2jB9b1E53j8kdYEuJOCzFIuTjqCCr5W9crTtD5wCo oxW+3Db8EEITzULcEdu/Qyoh8JIBjuHw/l+VurXEsgkl X-Received: by 10.140.104.174 with SMTP id a43mr83061qgf.2.1422773147946; Sat, 31 Jan 2015 22:45:47 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.46.11 with SMTP id j11ls1290187qga.58.gmail; Sat, 31 Jan 2015 22:45:47 -0800 (PST) X-Received: by 10.236.40.8 with SMTP id e8mr12100155yhb.41.1422773147604; Sat, 31 Jan 2015 22:45:47 -0800 (PST) Original-Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com. [209.85.220.47]) by gmr-mx.google.com with ESMTPS id ki8si1689474pdb.1.2015.01.31.22.45.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 31 Jan 2015 22:45:47 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 209.85.220.47 as permitted sender) client-ip=209.85.220.47; Original-Received: by mail-pa0-f47.google.com with SMTP id lj1so69177315pab.6 for ; Sat, 31 Jan 2015 22:45:47 -0800 (PST) X-Gm-Message-State: ALoCoQmtJPEgd6fk0u3mX/33c+m5mfPFTWpiltWLxJo+/jY9bjKd1UTuwmYO+Y1C/PHN5Ic3tp7M X-Received: by 10.66.140.77 with SMTP id re13mr1834817pab.153.1422773147435; Sat, 31 Jan 2015 22:45:47 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by mx.google.com with ESMTPSA id z3sm15279136pbt.13.2015.01.31.22.45.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Jan 2015 22:45:46 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 99A3FA27B; Sun, 1 Feb 2015 01:45:34 -0500 (EST) Content-Disposition: inline In-Reply-To: <2a08b6a8-d381-45bc-9361-3bf402544fb0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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.47 as permitted sender) smtp.mail=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-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:11893 Archived-At: +++ Gordon Steemson [Jan 31 15 18:25 ]: >1) If someone, just to be difficult, needs to have literal ASCII arrows at >the start and/or end of their actual output text block, can it be >accommodated in a simple way by backslash-escaping? At what stage does tha= t >get stripped out =E2=80=94 before the custom writer functions get called o= r after? Before. The escaping is resolved in the parser. >2) What would be involved in modifying the Pandoc markdown parser to >recognize the obvious extension to this syntax, demonstrated below? Well, it would be quite involved. We'd need to modify the Pandoc document model to add these alignment containers (though I suppose we could use Div elements with special classes), then modify the Markdown parser and all the writers. Centering has come up before on this list (you can search for earlier discussions). My general feeling is that pandoc should focus on structural elements of documents, and things like centering and right-aligning are too presentational. Note you can always put things in divs with classes, and format them with CSS in HTML or with a simple filter in other formats. --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/20150201064534.GB12964%40localhost.hsd1.ca.comcast.net. For more options, visit https://groups.google.com/d/optout.