web-rep-0.12.1.0: representations of a web page
Safe HaskellSafe-Inferred
LanguageGHC2021

Web.Rep.Html

Description

Key generators and miscellaneous html utilities.

Synopsis

Documentation

libCss :: ByteString -> Markup Source #

Convert a link to a css library from text to html.

>>> markdown_ Compact Html $ libCss "https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
"<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css\">"

libJs :: ByteString -> Markup Source #

Convert a link to a js library from text to html.

>>> markdown_ Compact Html $ libJs "https://code.jquery.com/jquery-3.3.1.slim.min.js"
"<script src=\"https://code.jquery.com/jquery-3.3.1.slim.min.js\"></script>"