diff --git a/src/app/resources/markmark/links.mark.md b/src/app/resources/markmark/links.mark.md index 993c443..33d7f4e 100644 --- a/src/app/resources/markmark/links.mark.md +++ b/src/app/resources/markmark/links.mark.md @@ -52,3 +52,13 @@ Tech projects that I found interesting, funny, or wanted to experiment with late - https://web.archive.org/web/20230314204244/http://www.rdrop.com/~half/Creations/Writings/Web.patterns/gift.to.the.community.html - https://web.archive.org/web/20211102185515/http://www.rdrop.com/~half/Creations/Writings/Web.patterns/downloadable.weblet.html - https://web.archive.org/web/20220120050151/http://www.rdrop.com/~half/Creations/Writings/Web.patterns/site.map.html + +# MarkMark Meta + +Links, resources, and tools related to MarkMark itself. ([_What's MarkMark?_](https://garrettmills.dev/markmark)) + +- Standard MarkMark (v1.0) + - https://garrettmills.dev/markmark + - https://garrettmills.dev/markmark/standard +- `mark-mark`: a WIP TypeScript MarkMark parser/renderer collection + - https://code.garrettmills.dev/garrettmills/www/src/branch/master/src/markmark diff --git a/src/app/resources/views/markmark/welcome.pug b/src/app/resources/views/markmark/welcome.pug index 60f8262..e98a1a2 100644 --- a/src/app/resources/views/markmark/welcome.pug +++ b/src/app/resources/views/markmark/welcome.pug @@ -44,6 +44,13 @@ block content ul li a(href=route('/markmark/standard')) Spec: Standard MarkMark (v1.0) + li MarkMark Icons (Light, Dark) + li + a(href='https://code.garrettmills.dev/garrettmills/www/src/branch/master/src/markmark') + span mark-mark: a TypeScript MarkMark parser/renderer collection + span(style='color: red; font-size: 0.7em; padding-left: 15px;' title='This library is still a work-in-progress and is not ready for production use.') WIP! + ul + li Heads up! Unlike the MarkMark Spec, the mark-mark library is licensed CC BY-NC-SA 4.0. Learn more. block append style link(rel='stylesheet' href=asset('highlight/styles/' + themeRecord.highlightTheme + '.min.css')) diff --git a/src/app/resources/views/technical.pug b/src/app/resources/views/technical.pug index 3dc08bd..86d6916 100644 --- a/src/app/resources/views/technical.pug +++ b/src/app/resources/views/technical.pug @@ -35,7 +35,7 @@ block content li Standard deviation of the centroid distance p Because it's interesting, you can view the # of generation attempts, as well as the aforementioned criteria in the footer of the homepage. - h3 Source Code & Licensing + h3#license Source Code & Licensing a(href='https://creativecommons.org/licenses/by-nc-sa/4.0/' target='_blank' style='margin-top: 15px') img(src=asset('cc-by-nc-sa.png')) p This website, its source code, and its contents are licensed under the terms of the Creative Commons BY-NC-SA 4.0 license. Learn more here. diff --git a/src/markmark/html.renderer.ts b/src/markmark/html.renderer.ts index f632b82..753363b 100644 --- a/src/markmark/html.renderer.ts +++ b/src/markmark/html.renderer.ts @@ -1,3 +1,4 @@ +import * as marked from 'marked' import {isNamedSection, MarkMark} from './types' export class HtmlRenderer { @@ -9,9 +10,9 @@ export class HtmlRenderer { // if this section has a title/description, write those out if ( isNamedSection(section) ) { - mmLines.push(`

${section.title}

`) + mmLines.push(`

${marked.marked.parse(section.title)}

`) if ( section.description ) { - mmLines.push(`

${section.description}

`) + mmLines.push(`

${marked.marked.parse(section.description)}

`) } } @@ -23,7 +24,7 @@ export class HtmlRenderer { linkTitle += ` ${link.tags.map(x => '#' + x + '').join(' ')}` } - mmLines.push(`