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. .settings/
  2. blame-cache/
  3. Documentation/
  4. gitiles-dev/
  5. gitiles-servlet/
  6. gitiles-war/
  7. lib/
  8. tools/
  9. .gitignore
  10. .mailmap
  11. BUILD
  12. COPYING
  13. fake_pom_deploy.xml
  14. navbar.md
  15. README.md
  16. version.bzl
  17. WORKSPACE
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.