#coding: utf-8
# example markdown text for docverter, with footer, page breaks
import workflow
html = """
<div class="footer">Example markdown</div>
# Sampler
Typical Markdown text, for developing a style sheet. Has examples of all markdown syntax and has the look of a real document. Requires CSS classes *floatright* and *pagebreak*. I use h1, h2, h3 headings. Peter Hopcroft, January 2014.
## Examples of links
Most of this document has the basic syntax of [Python markdown](http://pythonhosted.org/Markdown/index.html) without extensions (virtually the same as [John Gruber's original markdown](http://daringfireball.net/projects/markdown/)). At the end are the extensions I use; if you use other extensions, add examples at the end.
The text comes from the out-of-copyright book: 'The American Practical Brewer and Tanner', 1815, by Joseph Coppinger. I got it from a [Gutenberg EBook](http://www.gutenberg.org/ebooks/20663) and I am reusing it under the terms of the [their license](http://www.gutenberg.org/wiki/Gutenberg:The_Project_Gutenberg_License).
>To offer an apology for giving these subjects a place in this publication, seem wholly unnecessary, when their importance is considered.
# Examples of basic markdown syntax
## Examples of paragraphs
### Long paragraphs and inline elements
Brewing, in every country, whose soil and climate are congenial to the production of the raw materials, should be ranked among the first objects of its domestic and political economy. If any person doubt the truth of this position, I have only to request him to cast an eye on England, where the brewing capital is estimated at more than fifteen millions sterling; and the gross annual revenue, arising from this capital, at seven million five hundred thousand pounds sterling, including the hop, malt, and extract duties. Notwithstanding this enormous excise of 50 per cent. on the brewing capital, what immense fortunes have been made, and are daily making, in that country, as well as in Ireland and Scotland, by the intelligent and judicious practice of this more than useful art.
### Short paragraphs
The farmer can raise no crop that will pay him better than hops; as, under proper management, he may reasonably expect to clear, of a good year, one hundred dollars per acre.
Barley will also prove a good crop, if proper attention be paid to seed, soil, and time of sowing.
The merchant will alike find his account in encouraging the brewery, from the many advantages derivable from an extensive export of its produce to the East and West Indies, South America, the Brazils.
## Examples of lists
Sky, or water coolers, in general, are:
- square vessels
- of the best two inch pine plank
- properly jointed
- from twenty to twenty-five feet square.
But particularly to Russia, where good beer is in great demand; large quantities are annually sent there from England, at a much higher rate, it may be presumed, than we could afford to supply them from this country.
1. Since writing the Preface, I have been induced to make an addition to this little work, in order to increase its usefulness, by giving the French mode of tanning, as practised by the famous Mr. Seguine.
Of such importance did the Academy of Arts and Sciences at Paris consider this improvement, that they thought it worth while to appoint a committee of their own members to go down to one of the provinces where this gentleman resides, and there, on the spot, superintend his operations, which they did with minute attention; and it is from the journal of their reports to the academy, that the different processes of tanning leather in this ingenious artist's way are here given:
- Brewing without boiling.
- Brewing strong beer.
- A simple method of giving new beer.
- A simple method of preventing beer bursting the bottle.
2. This single advantage alone so forcibly recommends its adoption, particularly in a country like ours, where capital is scarce, that further comment is unnecessary. I have also added the Bordeaux method of making and preparing claret wine for shipping, as practised in that city and its vicinity; which practice may possibly hereafter be successfully applied to the red wines of this country.
3. As that territory is now in our possession, and its soil and climate peculiarly favourable to the growth of the grape, which is indigenous there, may it not be an object well worth the attention of our government, to encourage and improve the growth of the wine in that section of the union; which wise measure would, probably, in a few years, supply our own consumption, and leave a considerable surplus for exportation.
All these considerations united seem forcibly to recommend giving the breweries of the United States every possible encouragement and extension. Here, it is but justice to state, that the brewers of New-York deserve much credit for the high improvement they have made in the quality of their malt liquors within a few years, which seem to justify the hope that they will continue these advances to excellence, until they realise the opinion of Combrune and others, that it is possible to produce a malt wine.
## Examples of blockquotes
A new and economical construction of vats for keeping beer, which, in this way, may be rendered fire proof, whilst at the same time possessing the temperature of the best cellars, although above ground.
>The best plan of a well-constructed brewery I conceive to be that of a hollow, or oblong square.
A description of the form and plan of a brewery, distribution of the vessels; the most judicious and convenient manner of placing them, with a view to economy, cleanliness, and effect.
>The best plan of a well-constructed brewery I conceive to be that of a hollow, or oblong square, where all is enclosed by one or two gateways, (the latter the most complete,) parallel to each other. The first gateway, forming the brewery entrance, to pass through the dwelling house; the second, or corresponding gateway, to pass through the opposite side of the square, into an outer yard, well enclosed with walls and sheds, containing cooper's shop, &c. where all the empty casks might be securely preserved from the injury of wind and weather.
>>The sides of these coolers are generally raised from eighteen inches to two feet; in Europe they are generally leaded on their inside, but this expense may be saved, if they are properly made at first.
>This yard should be further sufficiently large to afford room for a hay reek, firewood, dung, &c.
Cleanliness being as essential in the brewery as in the dairy, it is of th greatest importance, never to lose sight of it in every part of the operations, and particularly in selecting the ground and soil to place a brewery on.
## Code blocks
The situation to be preferred should be an elevated one, and the soil either sand or gravel.
It is of great importance in the preservation of
beer that the cellars be dry.
Pumping by a hand or a horse power is a poor substitute, as by this means (which we find too common in breweries) the washings of the cellars have time to become putrid.
This is a serious evil, and should in all cases,
as much as possible, be avoided. It is true, there
are times, when a choice of situation cannot be made;
in that case, circumstances must be submitted to,
and people do the best they can.
The cellars and coolers of the breweries in this
country should have a northern aspect, and the
cellars principally ventilated from east to west.
The windows on the south side of cellars should be
always close shut in summer, and only occasionally
opened in winter; the floors of cellars should be
paved with either tile or brick, these being more
susceptible of being kept clean than either pavement
or flags.
Cleanliness being as essential in the brewery as in the dairy, it is of th greatest importance, never to lose sight of it in every part of the operations, and particularly in selecting the ground and soil to place a brewery on.
## Horizontal rule
Of such importance did the Academy of Arts and Sciences at Paris consider this improvement, that they thought it worth while to appoint a committee of their own members to go down to one of the provinces where this gentleman resides, and there, on the spot, superintend his operations, which they did with minute attention; and it is from the journal of their reports to the academy, that the different processes of tanning leather in this ingenious artist's way are here given.
---
All these considerations united seem forcibly to recommend giving the breweries of the United States every possible encouragement and extension. Here, it is but justice to state, that the brewers of New-York deserve much credit for the high improvement they have made in the quality of their malt liquors within a few years, which seem to justify the hope that they will continue these advances to excellence, until they realise the opinion of Combrune and others, that it is possible to produce a malt wine.
## Images

A description of the form and plan of a brewery, distribution of the vessels; the most judicious and convenient manner of placing them, with an inline image  with a view to cleanliness, and effect.
# Extensions to basic markdown
## Attribute lists
### Pagebreak {: .pagebreak}
There should be a page break before the heading above.
In Europe they are generally leaded on their inside, but this expense may be saved, if they are properly made at first, and afterwards kept constantly full of water.
### Floatright
{: .floatright}
In constructing these coolers, all the joints should be paid with white pain before laying, and the sides bolted, and screwed down; the better and easier to effect which, the thickness of the sides may be three inches after the saw; there should be a roofing all round the sides, to protect them from the weather; the bottom of the sky cooler should command the copper back, which should be made to form the cover of the copper, and to hold a complete charge of the same.
## Tables
A description of the form and plan of a brewery, distribution of the vessels; the most judicious and convenient manner of placing them, with a view to economy, cleanliness, and effect.
Code | Room
-----|------
A | Malt House
B |Brewery office
C |Cellars
D | Sky cooler
Malt house, the best construction of, with proper barley lofts, dropping room, and flooring, how, and in what manner made, and best likely to last.
Code | Room | Notes
-----|-------|-------
A | Malt House | The dwelling house, vat house, and working store, to form one side of the brewery.
B |Brewery office | Place in the passage of the outer gateway, so that every thing going in and out might be seen by those who are in the office.
C |Cellars | If these be under ground, it would be very desirable to have them kept sweet and clean by properly constructed sewers
D | Sky cooler | The sky cooler is, generally, the most elevated vessel in the brewery, and when properly constructed, is of great importance in facilitating both brewing and malting operations, as it usually supplies the whole quantity of water wanted in both.
The best position for placing a brewery and malt house, also the best aspect with different arrangements of the vessels.
End
---
"""
workflow.set_output(html)
There are no comments yet.