Skip to content

Not escaping dom elements in <pre><code>. #12

Open
@FiV0

Description

@FiV0

Hey,

thanks for the awesome highlighter. I was wondering if it's somehow possible to not escape html tags. The two use cases I am thinking of are

<pre><code class="lisp">(<a class="code-link" href="http://www.lispworks.com/reference/HyperSpec/Body/m_defun.htm">defun</a> test-syntax-highlighter ()
  "Docstring explaining what this function does."
  (let ((hash (make-hash-table :test #'equal)))
    ...))</pre></code>

with the css code-link being something like

.code-link {
  color:inherit;
  text-decoration:inherit;
}

so I could for example link to the Hyperspec or somewhere else.
Secondly some highlighting feature for searching

<pre><code class="lisp">(defun <mark>id</mark> (x) x)</code></pre>

I don't know if it's a big change or only a minor tweak.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions