From 05fe77afa44799bb5b5a21946bdcf2ea2ba1091d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 28 Aug 2023 14:26:24 +0100 Subject: html: Implement center using CSS. The
tag is deprecated in HTML5. * src/guile/skribilo/engine/html.scm (center): Implement using CSS only. --- src/guile/skribilo/engine/html.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/guile/skribilo/engine/html.scm b/src/guile/skribilo/engine/html.scm index bb2f1d0..2c70ef8 100644 --- a/src/guile/skribilo/engine/html.scm +++ b/src/guile/skribilo/engine/html.scm @@ -1721,8 +1721,11 @@ ignored, return #f." ;* center ... */ ;*---------------------------------------------------------------------*/ (markup-writer 'center - :before (html-markup-class "center") - :after "
\n") + :before (lambda (node engine) + (html-open 'span + `((class . ,(markup-class node)) + (style . "text-align: center")))) + :after "\n") ;*---------------------------------------------------------------------*/ ;* pre ... */ -- cgit v1.2.3