Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mardown Support #38

Merged
merged 13 commits into from
Feb 16, 2014
Merged

Mardown Support #38

merged 13 commits into from
Feb 16, 2014

Conversation

danpalmer
Copy link
Member

This pull request contributes markdown support for all free-form text entries that should be able to be styled.

We're using a modified version of Redcarpet for markdown rendering, with many extensions added. Things like tables, autolinking, code blocks like in GFM, footnotes, etc.

In addition to this, the syntax has been extended to support previews. Putting ~~ in the document allows the author to specify what content should be used as the preview of the document. For example:

Hello world.
~~
Lorem ipsum dolor sit amet...

In preview mode, using the helper method render_markdown_preview, as shown in home/index.html.erb, the content above will render to just "Hello world.", but in full document mode, with render_markdown, it will render the whole document, without the ~~ characters.

Site areas that display markdown formatted text, but which have not yet been updated from their original scaffolding have not all been converted as these need a full re-write at some point anyway.

danpalmer added a commit that referenced this pull request Feb 16, 2014
@danpalmer danpalmer merged commit a3d0f0b into master Feb 16, 2014
@danpalmer danpalmer deleted the mardown branch February 16, 2014 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant