all repos — hastyscribe @ d378ef57a0db6ca190949e67069f49288fd03a10

A professional markdown compiler.

Fixed deprecation warnings.
h3rald h3rald@h3rald.com
Sun, 30 Apr 2023 13:56:54 +0000
commit

d378ef57a0db6ca190949e67069f49288fd03a10

parent

c813a6369785dec4735d40739f9b408e42d874b1

3 files changed, 29 insertions(+), 29 deletions(-)

jump to
M doc/HastyScribe_UserGuide.htmdoc/HastyScribe_UserGuide.htm

@@ -7451,9 +7451,9 @@

<p>The easiest way to get HastyScribe is by downloading one of the prebuilt binaries from the <a href="https://github.com/h3rald/hastyscribe/releases/download/v">Github Release Page</a>:</p> <ul> -<li><a href="https://github.com/h3rald/hastyscribe/releases/download/v1.12.4/hastyscribe_v1.12.4_macosx_x64.zip">HastyScribe for Mac OS X (x64)</a></li> -<li><a href="https://github.com/h3rald/hastyscribe/releases/download/v1.12.4/hastyscribe_v1.12.4_windows_x64.zip">HastyScribe for Windows (x64)</a></li> -<li><a href="https://github.com/h3rald/hastyscribe/releases/download/v1.12.4/hastyscribe_v1.12.4_linux_x64.zip">HastyScribe for Linux (x64)</a></li> +<li><a href="https://github.com/h3rald/hastyscribe/releases/download/v1.12.5/hastyscribe_v1.12.5_macosx_x64.zip">HastyScribe for Mac OS X (x64)</a></li> +<li><a href="https://github.com/h3rald/hastyscribe/releases/download/v1.12.5/hastyscribe_v1.12.5_windows_x64.zip">HastyScribe for Windows (x64)</a></li> +<li><a href="https://github.com/h3rald/hastyscribe/releases/download/v1.12.5/hastyscribe_v1.12.5_linux_x64.zip">HastyScribe for Linux (x64)</a></li> </ul>

@@ -7611,59 +7611,59 @@ </thead>

<tbody> <tr> <td><code>{{$timestamp}}</code> </td> -<td> 1617135534</td> +<td> 1625325450</td> </tr> <tr> <td><code>{{$date}}</code> </td> -<td> 2021-03-30</td> +<td> 2021-07-03</td> </tr> <tr> <td><code>{{$full-date}}</code> </td> -<td> Tuesday, March 30, 2021</td> +<td> Saturday, July 3, 2021</td> </tr> <tr> <td><code>{{$long-date}}</code> </td> -<td> March 30, 2021</td> +<td> July 3, 2021</td> </tr> <tr> <td><code>{{$medium-date}}</code> </td> -<td> Mar 30, 2021</td> +<td> Jul 3, 2021</td> </tr> <tr> <td><code>{{$short-date}}</code> </td> -<td> 3/30/21</td> +<td> 7/3/21</td> </tr> <tr> <td><code>{{$short-time}}</code> </td> -<td> 22:18 PM</td> +<td> 15:17 PM</td> </tr> <tr> <td><code>{{$short-time-24}}</code> </td> -<td> 22:18</td> +<td> 15:17</td> </tr> <tr> <td><code>{{$time}}</code> </td> -<td> 22:18:54 PM</td> +<td> 15:17:30 PM</td> </tr> <tr> <td><code>{{$time-24}}</code> </td> -<td> 22:18:54</td> +<td> 15:17:30</td> </tr> <tr> <td><code>{{$day}}</code> </td> -<td> 30</td> +<td> 03</td> </tr> <tr> <td><code>{{$short-day}}</code> </td> -<td> 30</td> +<td> 3</td> </tr> <tr> <td><code>{{$month}}</code> </td> -<td> 03</td> +<td> 07</td> </tr> <tr> <td><code>{{$short-month}}</code> </td> -<td> 3</td> +<td> 7</td> </tr> <tr> <td><code>{{$year}}</code> </td>

@@ -7675,23 +7675,23 @@ <td> 21</td>

</tr> <tr> <td><code>{{$weekday}}</code> </td> -<td> Tuesday</td> +<td> Saturday</td> </tr> <tr> <td><code>{{$weekday-abbr}}</code> </td> -<td> 30</td> +<td> 03</td> </tr> <tr> <td><code>{{$month-name}}</code> </td> -<td> March</td> +<td> July</td> </tr> <tr> <td><code>{{$month-name-abbr}}</code> </td> -<td> Mar</td> +<td> Jul</td> </tr> <tr> <td><code>{{$timezone-offset}}</code> </td> -<td> +02:00</td> +<td> +00:00</td> </tr> </tbody> </table>

@@ -8828,7 +8828,7 @@

<p style="text-align:center;"> <span class="fa-creative-commons"></span> <span class="fa-creative-commons-by"></span> <span class="fa-creative-commons-nc"></span> <span class="fa-creative-commons-nd"></span></p> </div> <div id="footer"> - <p><span class="copy"></span> Fabio Cevasco &ndash; March 30, 2021</p> + <p><span class="copy"></span> Fabio Cevasco &ndash; July 3, 2021</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </div>
M hastyscribe.nimblehastyscribe.nimble

@@ -20,7 +20,7 @@ bin = @["hastyscribe"]

srcDir = "src" installExt = @["nim", "json", "a", "css", "png", "svg", "woff", "c", "h", "in"] -requires "nim >= 1.4.0" +requires "nim >= 1.6.12" before install: exec "nifty install"
M src/hastyscribe.nimsrc/hastyscribe.nim

@@ -102,7 +102,7 @@ elif imgfile.startsWith(peg"'http' 's'? '://'"):

try: let client = newHttpClient() imgcontent = encode_image(client.getContent(imgfile), imgformat) - except: + except CatchableError: warn "Unable to download '" & imgfile & "'" warn " Reason: " & getCurrentExceptionMsg() warn " -> Image will be linked instead"

@@ -178,7 +178,7 @@ contents &= s&"\n"

else: if s.startsWith("----"): delimiter.inc - except: + except CatchableError: discard f.close() result = result.replace(transclusion, hs.parse_transclusions(contents, fileInfo.dir, offset))

@@ -218,7 +218,7 @@ let params = value.split("||")

if hs.macros.hasKey(id): try: result = result.replace(instance, hs.macros[id] % params) - except: + except CatchableError: warn "Incorrect number of parameters specified for macro '$1'\n -> Instance: $2" % [id, instance] else: warn "Macro '" & id & "' not defined."

@@ -387,7 +387,7 @@

try: timeinfo = parse(metadata.date, "yyyy-MM-dd") - except: + except CatchableError: timeinfo = parse(getDateStr(), "yyyy-MM-dd") hs.document = """<!doctype html>

@@ -533,4 +533,4 @@ hs.compile(file)

except IOError: let msg = getCurrentExceptionMsg() fatal msg - quit(3) + quit(3)