![]() ![]() ![]() It should contain the outline of the structure of the page plus some shorthand labels we’ll expand later. Our markdown file serving as a template will be call “post-template.md”. Then we will use the render HTML as a template for a blog page entry. In this example we’ll build a HTML page with shorthand labels from markdown text. This is both a convience and also allows you to treat markdown with shorthand assignments as a template that renders HTML or HTML with shorthand ready for expansion. It uses the blackfriday markdown library. Shorthand also provides a markdown processor. + Assign shorthand expansions to a LABEL + :expand: LABEL SHORTHAND_TO_BE_EXPANDED + :expand: + this would concatenate report name and date Processing Markdown pages Notice the lines containing the assignments are not included in the output and that no carriage returns or line feeds are added the the substituted labels. If the file preamble.txt contained the phrase “Hello World” (including the quotes but without any carriage return or line feed) the output after processing the shorthand would look like -Īt 3:30 I will be reading the "Hello World" until everyone falls asleep. :expand-expansion: until everyone falls asleep. :expand: r e p o r t T i t l e Report: for expanded expansion An assignment statement is not written to stdout output. Doesn’t really matter but it needs to be unique and cannot be in the pattern of space, colon, string, colon and space. Commonlly this might be curly brackes, dollar signs or even at signs. Shorthand replaces the LABEL with the value assigned to it whereever it is encountered in the text being passed. Output all assignment statements to a file.Output a LABEL assignment statement to a file. ![]() Read a file of shorthand assignments and assign any expansions to the LABEL.Assign the output of a shorthand expansion to a LABEL.Assign the output of a Bash shell expression to a LABEL.Assign the contents of a file to a LABEL.It supports this following types of definitions It is based on a simple key value substitution. Shorthand is a simple label expansion utility. Doiel, Software Engineer/Analyst - shorthand: syntax ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |