Htmlx

object Htmlx extends Htmlx
Companion
class
trait Htmlx
class Object
trait Matchable
class Any

Type members

Inherited classlikes

case class Header(level: Int, node: Node, namer: UniqueNames)
Inherited from
Htmlx
object HeaderShow
Inherited from
Htmlx
case class NodeRewriteRule(pf: PartialFunction[Node, Seq[Node]])
Inherited from
Htmlx

Value members

Inherited methods

def anchorName(name: String): String

create a sanitized anchor name

create a sanitized anchor name

Inherited from
Htmlx
def headers(nodes: NodeSeq): NodeSeq
Returns

all the headers and all the subtoc elements of a document

Inherited from
Htmlx

This rule can be used to add anchors to header elements

This rule can be used to add anchors to header elements

Inherited from
Htmlx
def headersToTree(body: NodeSeq, headers: TreeLoc[Header]): TreeLoc[Header]

collect all the headers as a Tree

collect all the headers as a Tree

Inherited from
Htmlx
def isHeader(e: Node): Boolean
Returns

true if the element is a header

Inherited from
Htmlx
def nodeText(n: Node): String
Returns

the text of the first child of a Node

Inherited from
Htmlx
def rewriteRule(pf: PartialFunction[Node, Seq[Node]]): NodeRewriteRule
Returns

a rewrite rule that will rewrite recursively each node based on a partial function

Inherited from
Htmlx
def sanitize(s: String): String

sanitize a string so that it can be used as a href

sanitize a string so that it can be used as a href

Inherited from
Htmlx
def updateHead(ns: NodeSeq)(f: PartialFunction[Node, Node]): NodeSeq
Returns

a NodeSeq where the first Node is updated with a partial function

Inherited from
Htmlx
def updateHeadAttribute(ns: NodeSeq, name: String, value: Int): NodeSeq
Returns

a NodeSeq where the first Node attribute named 'named' has a new value, from an Int

Inherited from
Htmlx
def updateHeadAttribute(ns: NodeSeq, name: String, value: String): NodeSeq
Returns

a NodeSeq where the first Node attribute named 'named' has a new value

Inherited from
Htmlx
def urls(ns: NodeSeq, filePath: FilePath): List[String]
Returns

the href urls in <a/> elements

Inherited from
Htmlx

Inherited fields

final lazy val Diffable_NodeSeq: Diffable[NodeSeq]
Inherited from
Htmlx

Extensions

Inherited extensions

extension (n: Node)
def addHeadersAnchors: NodeSeq
Inherited from
Htmlx
extension (ns: Seq[Node])
def updateHead(using nothing: Int)(f: PartialFunction[Node, Node]): NodeSeq
Inherited from
Htmlx
def updateHeadAttribute(using nothing: Int)(name: String, value: String): NodeSeq
Inherited from
Htmlx
extension (ns: NodeSeq)
def addHeadersAnchors(using nothing: Int): NodeSeq
Inherited from
Htmlx
def headers(using nothing: Int): NodeSeq
Inherited from
Htmlx
def headersTree(using nothing: Int): Tree[Header]
Inherited from
Htmlx
extension (s: String)
def anchorName(using nothing: Int): String
Inherited from
Htmlx
def sanitize(using nothing: Int): String
Inherited from
Htmlx