pg_search

https://github.com/casecommons/pg_search

Ruby

pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search

Banzai::Renderer.render

Convert a Markdown String into an HTML-safe String of HTML

Note that while the returned HTML will have been sanitized of dangerous
HTML, it may post a risk of information leakage if it's not also passed
through `post_process`.

Also note that the returned String is always HTML, not XHTML. Views
requiring XHTML, such as Atom feeds, need to call `post_process` on the
result, providing the appropriate `pipeline` option.

text     - Markdown String
context  - Hash of context options passed to our HTML Pipeline

Returns an HTML-safe String

Source | Google | Stack overflow

Edit

git clone [email protected]:casecommons/pg_search.git

cd pg_search

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Banzai--Renderer-render-for-pr


# Commit to git

git add git commit -m "better docs for Banzai::Renderer.render"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Banzai--Renderer-render-for-pr

hub pull-request


# Celebrate!