From d55e5dd1ba411132a8de4cfea49cdad272ffecf2 Mon Sep 17 00:00:00 2001 From: meld-cp <18450687+meld-cp@users.noreply.github.com> Date: Fri, 6 Jan 2023 23:37:50 +1300 Subject: [PATCH] formatting --- docs/examples/invoice-builder.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/examples/invoice-builder.md b/docs/examples/invoice-builder.md index eaaf1d8..b5b7955 100644 --- a/docs/examples/invoice-builder.md +++ b/docs/examples/invoice-builder.md @@ -6,7 +6,8 @@ Copy and paste the codeblock below into a new note to try it out. ````md # A Simple Invoice Builder -This example will produce and open an `HTML` file representing a simple invoice. From your default web browser, it can then be saved as a PDF. +This example will produce and open an `HTML` file representing a simple invoice. +From your default web browser, it can then be saved as a PDF. ## Choose the invoice to build ```js meld-build @@ -107,10 +108,10 @@ const customer = customers.filter( e => e.id==inv.customer ).at(0); // get the invoice template const template = $.blocks.at(0); -// renter the template passing in the customer and invoice +// render the template passing in the customer and invoice const html = await $.render( template, { customer, inv } ); // create an html invoice file and open it in the default browser, from there it can be saved as a PDF await $.io.output( `inv ${inv.id}.html`, html, true ); ``` -```` \ No newline at end of file +````