From 42752b7800a8918edc77ff39512dff82141da1aa Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 30 Jul 2020 16:20:48 -0700 Subject: [PATCH] Document basic supported markdown syntax. Closes #95 --- README.md | 10 ++++++++++ webroot/styles/layout.css | 11 +++++++++++ 2 files changed, 21 insertions(+) diff --git a/README.md b/README.md index 806d0d858..dc1a77ed4 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,16 @@ If you want to add some additional content you can edit the [`/webroot/static/co However, the web interface was specifically built to be editable by anybody comfortable tweaking a web page. It's not bundled or transpiled into anything, it's just HTML + Javascript + CSS that you can start editing. Feel free to add your own branding, links, change the colors in the CSS, fonts, layout, or anything else you could possibly want. No development environment is needed, just open the files in an editor and start tweaking. +The web chat supports some basic formatting using markdown: + +Italic: `*your text*` + +Bold: `**your text**` + +Strikethrough: `~~your text~~` + +Code blocks: \`your text\` + ## Use with your desktop software diff --git a/webroot/styles/layout.css b/webroot/styles/layout.css index 455796b02..0339d38de 100644 --- a/webroot/styles/layout.css +++ b/webroot/styles/layout.css @@ -616,4 +616,15 @@ h2 { width: 100%; height: 170px; border-radius: 15px; +} + +.message-text .embedded-image { + width: 100%; + height: 170px; + border-radius: 15px; +} + +.message-text code { + background-color:darkslategrey; + padding: 3px; } \ No newline at end of file