All updates

Markdown Templates

You can now write HTML templates in Markdown. Write headings, lists and tables in plain text, add Liquid tags for your data, and DocSpring turns it into a PDF styled for print.

The template editor with a Markdown proposal template: its Markdown with Liquid tags in the middle, and the finished proposal with its heading and a table of tasks in the preview pane on the right

Create a Markdown template

Click Create template and choose Markdown and CSS. Your template starts with a stylesheet for printed documents: a readable font, headings, and tables with borders. Change it in the SCSS tab, or replace it with your own.

With the API, create an HTML template with "markdown": true. To change an HTML template you already have, turn on Write in Markdown in its settings: DocSpring converts its HTML to Markdown, and keeps as HTML anything Markdown can't write. Turning it off converts the Markdown back to HTML, and Undo puts the template back as it was.

Liquid in Markdown

Values print as they're sent: a * or a | in a name never turns into Markdown. To convert a value's Markdown, such as notes your users write, use the new markdown filter: {{ notes | markdown }}. The filter works in every HTML template.

To repeat a table's rows or a list's items, put the loop's tags on lines of their own. DocSpring leaves out a line that holds only tags like {% for %} and {% if %}, so the rows stay in one table:

| Task | Due |
| --- | --- |
{% for task in tasks %}
| {{ task.name }} | {{ task.due }} |
{% endfor %}

Read more in the Markdown templates docs.

Fill your first document today

Test PDFs are free and unlimited. No credit card needed.

Product news by email

New features and changes, once a month.