From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11033 Path: news.gmane.org!not-for-mail From: Jesse Rosenthal Newsgroups: gmane.text.pandoc Subject: Re: How to get a page break (/f) from Markdown -> docx? Date: Fri, 03 Oct 2014 10:43:46 -0400 Message-ID: <874mvlcixp.fsf@jhu.edu> References: <65081506-a54b-4aff-96a0-d8e1cb6accc2@googlegroups.com> <87fvf5ckhv.fsf@jhu.edu> <404e04a7-e51c-4afe-ab5a-826a2ccfec86@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=ISO-8859-1 X-Trace: ger.gmane.org 1412347329 32073 80.91.229.3 (3 Oct 2014 14:42:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2014 14:42:09 +0000 (UTC) Cc: ken.kleinman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org To: Ken Kleinman , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDF7DMU574PBBOPLXKQQKGQE6DQRYMI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 03 16:42:03 2014 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ob0-f186.google.com ([209.85.214.186]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xa43W-0003Ow-U8 for gtp-pandoc-discuss@m.gmane.org; Fri, 03 Oct 2014 16:42:03 +0200 Original-Received: by mail-ob0-f186.google.com with SMTP id wp18sf229499obc.3 for ; Fri, 03 Oct 2014 07:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version: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:content-type; bh=4dg9otcLKcFG/BJm2kaWmlVHYr0bF8cclJkoDs2nMqU=; b=mIPZiTHS89Ag1toEvDw10Xh6TvipQylF6E3KK3z3NctkGass7SHpXPycak3CGU63Ca 88A6JXO+v4G0pYuWht8DBQWDuItKEEa2KecG88Xz0tBoeJ8JMfXZmW6laS8zEQFvUTYB SAx0+lzeojQVjK1W0rEzp6yo94T2H8O4tz/Nda1J4lFqasT69XXRzptOFu8WomV15FZc uYsBlpUCs99FgH/51fULNHl2fjcG5sbTNSi7+PakQoqM3tOpKMlAnz64/OGrxZ0tf99k f0yFjqW3JagwgciSKtw83K1vdu0YV0SwJJVtPVBc3uGEVLeT5vKY3m0HX0Rsr0W/4Wgp cq2g== X-Received: by 10.51.17.69 with SMTP id gc5mr153438igd.0.1412347322053; Fri, 03 Oct 2014 07:42:02 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.254.164 with SMTP id aj4ls1031547igd.13.canary; Fri, 03 Oct 2014 07:42:01 -0700 (PDT) X-Received: by 10.42.188.83 with SMTP id cz19mr6070829icb.32.1412347321653; Fri, 03 Oct 2014 07:42:01 -0700 (PDT) Original-Received: from smtpauth.johnshopkins.edu (smtpauth.johnshopkins.edu. [162.129.8.201]) by gmr-mx.google.com with ESMTPS id z1si1601375qci.3.2014.10.03.07.42.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 Oct 2014 07:42:01 -0700 (PDT) Received-SPF: none (google.com: prvs=34620305a=jrosenthal-4GNroTWusrE@public.gmane.org does not designate permitted sender hosts) client-ip=162.129.8.201; X-IronPort-AV: E=Sophos;i="5.04,647,1406606400"; d="scan'208";a="402636684" Original-Received: from guppy.hwcampus.jhu.edu (HELO localhost) ([10.161.33.108]) by ipex2.johnshopkins.edu with ESMTP/TLS/AES128-SHA; 03 Oct 2014 10:41:55 -0400 In-Reply-To: <404e04a7-e51c-4afe-ab5a-826a2ccfec86-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> User-Agent: Notmuch/0.18.1+65~g9f0f30f (http://notmuchmail.org) Emacs/24.3.1 (i686-pc-linux-gnu) X-Original-Sender: jrosenthal-4GNroTWusrE@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: prvs=34620305a=jrosenthal-4GNroTWusrE@public.gmane.org does not designate permitted sender hosts) smtp.mail=prvs=34620305a=jrosenthal-4GNroTWusrE@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:11033 Archived-At: Ken Kleinman writes: > I suppose the dumb obvious workaround would be to insert some text like > "PAGEBREAK" and then do a replace all in Word. Duh. Or put PAGEBREAK on a line by itself in your markdown source, and then instead of the H1 filter I suggested before, just replace it in the filter: ~~~ insertPgBrks :: Block -> Block insertPgBrks (Para [Str "PAGEBREAK"]) = pgBrkBlock insertPgBrks blk = blk main = toJSONFilter insertPgBrks ~~~