diff options
| author | Paul Buetow <paul@buetow.org> | 2023-04-09 13:36:34 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-04-09 13:36:34 +0300 |
| commit | f6f3d8d8445d181f85d42ac5320e0d1d6dad75ec (patch) | |
| tree | f445bd6e6152b7b5768f271ed2a77f9f3b29343f /gemfeed/2021-06-05-gemtexter-one-bash-script-to-rule-it-all.md | |
| parent | f04f32849487a71d005be78a33468008cf348a3e (diff) | |
Update content for md
Diffstat (limited to 'gemfeed/2021-06-05-gemtexter-one-bash-script-to-rule-it-all.md')
| -rw-r--r-- | gemfeed/2021-06-05-gemtexter-one-bash-script-to-rule-it-all.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gemfeed/2021-06-05-gemtexter-one-bash-script-to-rule-it-all.md b/gemfeed/2021-06-05-gemtexter-one-bash-script-to-rule-it-all.md index f66f7252..12022a59 100644 --- a/gemfeed/2021-06-05-gemtexter-one-bash-script-to-rule-it-all.md +++ b/gemfeed/2021-06-05-gemtexter-one-bash-script-to-rule-it-all.md @@ -79,7 +79,7 @@ The Bash is suitable very well for small scripts and ad-hoc automation on the co I modularized the code so that each core functionality has its own file in ./lib. All the modules are included from the main Gemtexter script. For example, there is one module for HTML generation, one for Markdown generation, and so on. -``` +```sh paul in uranus in gemtexter on 🌱 main ❯ wc -l gemtexter lib/* 117 gemtexter @@ -122,16 +122,15 @@ It has been proven quite helpful to have unit tests in place for the HTML part a ### HTML unit test example -``` +```bash gemtext='=> http://example.org Description of the link' assert::equals "$(generate::make_link html "$gemtext")" \ '<a class="textlink" href="http://example.org">Description of the link</a><br />' - ``` ### Markdown unit test example -``` +```bash gemtext='=> http://example.org Description of the link' assert::equals "$(generate::make_link md "$gemtext")" \ '[Description of the link](http://example.org) ' |
