Add support for glue to permit some block HTML in Markdown

Allow a RootedDocServlet created by an integration application to
override the way MarkdownToHtml handles HtmlBlock AST nodes, casting
them into SafeHtml that can be appended directly to the HtmlBuilder.

This can allow an integrator to pass the user content through an HTML
sanitizer, and pass-through a subset it believes to be safe.

The default still drops everything on the floor, and it's not possible
to configure Gitiles to pass-through HTML by default.  Application
code changes are required to invoke the proper RootedDocServlet
constructor.

Change-Id: Id412bc8670d2c25f36c8486e0d3600d1cb9d0710
10 files changed
tree: 1dea607b6d5b658fcadf6a900ff66456365af48c
  1. .gitignore
  2. .mailmap
  3. .settings/
  4. BUILD
  5. COPYING
  6. Documentation/
  7. README.md
  8. WORKSPACE
  9. blame-cache/
  10. fake_pom_deploy.xml
  11. gitiles-dev/
  12. gitiles-servlet/
  13. gitiles-war/
  14. lib/
  15. navbar.md
  16. tools/
  17. version.bzl
README.md

Gitiles - A simple JGit repository browser

Gitiles is a simple repository browser for Git repositories, built on JGit. Its guiding principle is simplicity: it has no formal access controls, no write access, no fancy Javascript, etc.

Gitiles automatically renders *.md Markdown files into HTML for simplified documentation. Refer to the Markdown documentation for details.

Configuration

Gitiles is configurable in a git-style configuration file named gitiles.config. Refer to the configuration documentation for details.

Bugs

Use the issue tracker at github to file bugs.

Contributing to Gitiles

Please refer to the Developer Guide.