asciidoc-py / asciidoc-py2

Deprecated python2 implementation of AsciiDoc.py. See asciidoc-py/asciidoc-py for current work.
https://asciidoc.org/
GNU General Public License v2.0
466 stars 128 forks source link

How can I adjust font-weight and font-size in asciidoc? #132

Closed repomorphic closed 6 years ago

repomorphic commented 6 years ago

Hello everyone. I am trying to adjust font-weight and font-size. Is there any asciidoc technique to adjust font-weight and font-size? I have tried with HTML but it didn't work on the asciidoc file.

++++
<p style="font-weight:900;font-size:50px"> Sample </p>
++++
elextr commented 6 years ago

Asciidoc is a structural markup, not a presentational markup, so Asciidoc itself does not provide ways of setting styles, that is done by the backend, but all of them allow for entities marked with a role to be individually styled.. If you are generating HTML directly from Asciidoc you can use CSS for that, see http://asciidoc.org/userguide.html#X35

repomorphic commented 6 years ago

Thanks a lot. I tried this on asciidocfx editor which is converts asciidoc directly to HTML, it worked.