From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id e2bfe70b for ; Fri, 6 May 2016 14:18:37 -0500 (EST) Received: by mail-io0-f171.google.com with SMTP id u185so142296158iod.3 for ; Fri, 06 May 2016 12:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cathet-us.20150623.gappssmtp.com; s=20150623; h=sender:from:to:subject:in-reply-to:references:comments:mime-version :content-id:date:message-id; bh=Zedug1gDFb+1g4dalNpNTrnyWuZIdFXt2VhCNR/UV+k=; b=feKPztrYqec9lTSx+LsskkLov5797Jopx3/5E2GYht23QkxJWzdh0oEGmKeO2dxR1/ dpFtRo1ZjElu7tdV1iRXldRepvA7fHXBfN1vA/iXNEHYNPBv5aH8rcak1+cLBfikmxMs JPMi7gyBA+bnXmP9DpdoUtJKTPtGnBDctVwkPQhjNB+fKlHrxYO92oI4iZd49hG5FDDF qFPuY0YkJe0BiGUf6xox/NiplZPkOkLobFCD4KudwP9SkOosTWqsebKmBoTu+hL/MgtZ tjBsiBZ5vzdfCIE7lOfcgggPAdgyTDprtBchroV9OxU2a/JEgMiGx2D5xr4pdW0hHIJN Gj0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:in-reply-to:references :comments:mime-version:content-id:date:message-id; bh=Zedug1gDFb+1g4dalNpNTrnyWuZIdFXt2VhCNR/UV+k=; b=F45+wW2OGdrtyifa6PZbifGH4yfHHyLeDszRsvej1fDiSQVZE5AoVhVtFGuL5vPv/e vShThdIH4BSksJ5q/5hU7SiTbIk9vDQK02/mSLzadNrUpC+6jKkCSRhEs6iTXnFus1gz 8d43J0880ZKsMqqp0okW9C22ukqCnhOFII1I/2kBcpB+ly948OuXt/2stWEHoHzB9wxC iRIKXp3xmK0Xu8fPdk2Gk9Bwr5kd0iwZu+AX54JKMRNOMTHk8Xz0WmIhJgLrdq00KJzH Ii+l6Af1unVE7MIAKvgOHvECMyftmC2e3t1EuPbZcNRWWA5pBMrDtVghIDHUMjfhnTpe B76A== X-Gm-Message-State: AOPr4FUMPxLFkj/+hIEUNL98ODqE0e1I098cK0t0u3YriDxrm4BHNKXcQDWpwTUaEou+ow== X-Received: by 10.107.138.33 with SMTP id m33mr25871341iod.181.1462562315149; Fri, 06 May 2016 12:18:35 -0700 (PDT) Received: from cathet.us. (75-161-68-4.albq.qwest.net. [75.161.68.4]) by smtp.gmail.com with ESMTPSA id jx14sm1516078igb.5.2016.05.06.12.18.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 May 2016 12:18:33 -0700 (PDT) Sender: "Anthony J. Bentley" Received: from CATHET.us (localhost [127.0.0.1]) by cathet.us. (OpenSMTPD) with ESMTP id 2b159a51 for ; Fri, 6 May 2016 13:18:32 -0600 (MDT) From: "Anthony J. Bentley" To: discuss@mdocml.bsd.lv Subject: Re: Mandoc HTML Output - Recognizing Sections In-reply-to: References: Comments: In-reply-to Abhinav Upadhyay message dated "Fri, 06 May 2016 23:28:07 +0530." X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <63543.1462562312.1@CATHET.us> Date: Fri, 06 May 2016 13:18:32 -0600 Message-ID: <23922.1462562312@CATHET.us> Hi Abhinav, Abhinav Upadhyay writes: > I was thinking it would be nice if the HTML output from mandoc also > added the section name to the class of the section divs. For example >
. > > It would allow section specific styling, for example the EXAMPLES > sections could be styled better, maybe with syntax highlighting etc. > :) Seems like you could do the same with ~ in CSS. See CSS Selectors Level 3 section 8.3.2 "General sibling combinator": https://www.w3.org/TR/css3-selectors/#general-sibling-combinators For example, "h1#EXAMPLES ~ pre.display { ... }" -- Anthony J. Bentley -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv