From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Possible feature request (but more of a request for comment/opinion) Date: Sat, 27 Oct 2018 11:38:10 +0200 Message-ID: <87va5nd919.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGL2z-0007Gd-7L for Emacs-orgmode@gnu.org; Sat, 27 Oct 2018 05:38:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGL2s-0005Bn-OV for Emacs-orgmode@gnu.org; Sat, 27 Oct 2018 05:38:20 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:35307) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gGL2s-0005AR-He for Emacs-orgmode@gnu.org; Sat, 27 Oct 2018 05:38:14 -0400 In-Reply-To: (Emil Vatai's message of "Sat, 27 Oct 2018 16:40:38 +0900") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Emil Vatai Cc: Emacs-orgmode@gnu.org Hello, Emil Vatai writes: > So I have a web page generated by org-mode which has a fancy quote at the > beginning, generated by #+BEGIN/END_QUOTE of course... and the > signature/citation/reference at the end seemed off so I googled "html > blockquote" and apparently the proper way to use it [1] is to have a > tag after the
tag. So I thought, this can't be so hard... > let's do it... a few copy/pastes and search-and-replaces later... I > realized that the #+BEGIN/END_QUOTE block is processed not just by ox-html > but also buy the other backends... so to make things nice, I'd need to > implement the same thing in them as well... which might not be a meaningful > thing to do. Could you be a bit more explicit about what you want to do, possibly giving an example? > I just had that urge that "wow, I want to contribute to that cool project > (org-mode) which I use so much"... but it's not something what I thing > should be extra useful. It can be done without adding a CITE block to the > html export backend. I need it only in one place - so probably not worth it. > > But still, any opinion on this? (I got really good encouragement on IRC to > write here) You can add a feature per export back-end, using, e.g., "ATTR_HTML" keyword: #+attr_html: :cite The source #+begin_quote ... #+end_quote For example, ox-texinfo supports :author for quotes: #+attr_texinfo: :author ... #+begin_quote ... #+end_quote See `org-texinfo-quote-block' for details. Regards, -- Nicolas Goaziou