From 5bb580147aa7da8dc8fde419808c665f491e1c60 Mon Sep 17 00:00:00 2001 From: Charlie Humphreys Date: Tue, 28 Dec 2021 21:59:02 -0600 Subject: [PATCH 1/5] Add discord, github, and reddit links to home page document --- client/homebrew/pages/homePage/welcome_msg.md | 24 +++++++++++++++++++ server.js | 1 + 2 files changed, 25 insertions(+) diff --git a/client/homebrew/pages/homePage/welcome_msg.md b/client/homebrew/pages/homePage/welcome_msg.md index f182517f5..77be2bfe7 100644 --- a/client/homebrew/pages/homePage/welcome_msg.md +++ b/client/homebrew/pages/homePage/welcome_msg.md @@ -1,4 +1,28 @@ +```css +#header { + display: flex; + flex: 0 0 auto; + justify-content: space-between; +} + +#header a { + color: black; +} + +i.domt:before { + content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg version='1.1' id='Layer_3' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' height='31' width='31' viewBox='0 0 36 36' style='enable-background:new 0 0 36 36;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bopacity:0.9;%7D .st1%7Bfill:%23001013;%7D .st2%7Bfill:%23FFFFFF;%7D .st3%7Bfill:%23AA2A29;%7D%0A%3C/style%3E%3Cg class='st0'%3E%3Cpath d='M6.2,1.5C6,1.8,5.9,2,5.8,2.3C5.7,2.8,5.5,3.3,5.5,3.9c0,7.7,0,15.3,0,23c0,1.8,1.2,3.3,2.9,3.7c0.2,0,0.5,0.1,0.7,0.1 c6.3,0,12.7,0,19,0h0.6c-0.3-1.1-0.9-3.1-0.9-3.1l0.2,0.2c0,0,3.8,3.5,5.7,5.2c0.2,0.2,0.3,0.4,0.3,0.7c0,0.8,0,1.5,0,2.3 c-0.6-0.5-1.1-0.9-1.6-1.4c-0.9-0.8-1.8-1.6-2.6-2.3c-0.2-0.2-0.4-0.3-0.7-0.3c-7.2,0-14.3,0-21.5,0c-1.9,0-3.1-0.8-3.8-2.6 c-0.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6.6,0.8-10l8.7,8.9L12.1,23.5z'/%3E%3Cpath class='st3' d='M17.4,3.8l7.6,5.1L13.3,12L17.4,3.8z'/%3E%3Cpath class='st3' d='M30.5,19.7l-6.7,6.7c-0.3-1.2-0.6-2.4-0.9-3.5L30.5,19.7z'/%3E%3Cpath class='st3' d='M22.1,23.1c0.3,1.2,0.6,2.3,1,3.5l-9.1-2.4l0-0.1L22.1,23.1z'/%3E%3Cpath class='st3' d='M31.3,16l-4.7-6.9l2.5-2L31.3,16L31.3,16z'/%3E%3Cpath class='st3' d='M12.1,12.9c-0.2,2.8-0.4,5.6-0.6,8.4l-0.1,0c-0.8-2.9-1.6-5.9-2.4-8.9L12.1,12.9z'/%3E%3Cpath class='st3' d='M26,8.5l-6.3-4.2l0-0.1l8.6,2.3L26,8.5z'/%3E%3Cpath class='st3' d='M9.5,11.7l6.1-6.3l0.1,0.1l-3.4,6.7L9.5,11.7z'/%3E%3C/svg%3E%0A"); +} +``` + + + Welcome traveler from an antique land. Please sit and tell us of what you have seen. The unheard of monsters, who slither and bite. Tell us of the wondrous items and and artifacts you have found, their mysteries yet to be unlocked. Of the vexing vocations and surprising skills you have seen. ### Homebrew D&D made easy diff --git a/server.js b/server.js index 4c4cb6f63..9e76030e9 100644 --- a/server.js +++ b/server.js @@ -126,6 +126,7 @@ app.get('/', async (req, res, next)=>{ const brew = { text : welcomeText }; + splitTextStyleAndMetadata(brew); req.brew = brew; return next(); }); From 22b80ffbb20d63fd6c05eef38506e329bfd26c77 Mon Sep 17 00:00:00 2001 From: Charlie Humphreys Date: Wed, 26 Jan 2022 21:56:12 -0600 Subject: [PATCH 2/5] update app templates for welcome messages, add new images --- client/homebrew/pages/homePage/welcome_msg.md | 38 +++++------------- .../homebrew/pages/homePage/welcome_msg_v3.md | 38 +++++++++--------- scripts/buildHomebrew.js | 3 +- server.js | 2 +- server/app.js | 2 +- server/googleActions.js | 2 +- server/token.js | 2 +- themes/assets/discord.png | Bin 0 -> 3149 bytes themes/assets/discordOfManyThings.svg | 1 + themes/assets/github.png | Bin 0 -> 5033 bytes themes/assets/patreon.png | Bin 0 -> 2436 bytes themes/assets/reddit.png | Bin 0 -> 4073 bytes 12 files changed, 36 insertions(+), 52 deletions(-) create mode 100644 themes/assets/discord.png create mode 100644 themes/assets/discordOfManyThings.svg create mode 100644 themes/assets/github.png create mode 100644 themes/assets/patreon.png create mode 100644 themes/assets/reddit.png diff --git a/client/homebrew/pages/homePage/welcome_msg.md b/client/homebrew/pages/homePage/welcome_msg.md index 77be2bfe7..2a15bd89b 100644 --- a/client/homebrew/pages/homePage/welcome_msg.md +++ b/client/homebrew/pages/homePage/welcome_msg.md @@ -1,27 +1,4 @@ -```css -#header { - display: flex; - flex: 0 0 auto; - justify-content: space-between; -} - -#header a { - color: black; -} - -i.domt:before { - content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg version='1.1' id='Layer_3' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' height='31' width='31' viewBox='0 0 36 36' style='enable-background:new 0 0 36 36;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bopacity:0.9;%7D .st1%7Bfill:%23001013;%7D .st2%7Bfill:%23FFFFFF;%7D .st3%7Bfill:%23AA2A29;%7D%0A%3C/style%3E%3Cg class='st0'%3E%3Cpath d='M6.2,1.5C6,1.8,5.9,2,5.8,2.3C5.7,2.8,5.5,3.3,5.5,3.9c0,7.7,0,15.3,0,23c0,1.8,1.2,3.3,2.9,3.7c0.2,0,0.5,0.1,0.7,0.1 c6.3,0,12.7,0,19,0h0.6c-0.3-1.1-0.9-3.1-0.9-3.1l0.2,0.2c0,0,3.8,3.5,5.7,5.2c0.2,0.2,0.3,0.4,0.3,0.7c0,0.8,0,1.5,0,2.3 c-0.6-0.5-1.1-0.9-1.6-1.4c-0.9-0.8-1.8-1.6-2.6-2.3c-0.2-0.2-0.4-0.3-0.7-0.3c-7.2,0-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'/%3E%3Cpath class='st3' d='M12.1,23.5c0.3-3.3,0.5-6.6,0.8-10l8.7,8.9L12.1,23.5z'/%3E%3Cpath class='st3' d='M17.4,3.8l7.6,5.1L13.3,12L17.4,3.8z'/%3E%3Cpath class='st3' d='M30.5,19.7l-6.7,6.7c-0.3-1.2-0.6-2.4-0.9-3.5L30.5,19.7z'/%3E%3Cpath class='st3' d='M22.1,23.1c0.3,1.2,0.6,2.3,1,3.5l-9.1-2.4l0-0.1L22.1,23.1z'/%3E%3Cpath class='st3' d='M31.3,16l-4.7-6.9l2.5-2L31.3,16L31.3,16z'/%3E%3Cpath class='st3' d='M12.1,12.9c-0.2,2.8-0.4,5.6-0.6,8.4l-0.1,0c-0.8-2.9-1.6-5.9-2.4-8.9L12.1,12.9z'/%3E%3Cpath class='st3' d='M26,8.5l-6.3-4.2l0-0.1l8.6,2.3L26,8.5z'/%3E%3Cpath class='st3' d='M9.5,11.7l6.1-6.3l0.1,0.1l-3.4,6.7L9.5,11.7z'/%3E%3C/svg%3E%0A"); -} -``` - - Welcome traveler from an antique land. Please sit and tell us of what you have seen. The unheard of monsters, who slither and bite. Tell us of the wondrous items and and artifacts you have found, their mysteries yet to be unlocked. Of the vexing vocations and surprising skills you have seen. @@ -81,17 +58,20 @@ The Homebrewery is licensed using the [MIT License](https://github.com/naturalcr If you wish to sell or in some way gain profit for what you make on this site, it's your responsibility to ensure you have the proper licenses/rights for any images or resources used. ### More Resources -If you are looking for more 5e Homebrew resources check out [r/UnearthedArcana](https://www.reddit.com/r/UnearthedArcana/) and their list of useful resources [here](https://www.reddit.com/r/UnearthedArcana/wiki/resources). +Discord of Many Things Logo +If you are looking for more 5e Homebrew resources check out [r/UnearthedArcana](https://www.reddit.com/r/UnearthedArcana/) and their list of useful resources [here](https://www.reddit.com/r/UnearthedArcana/wiki/resources). The Discord of Many Things is another great resource to connect with fellow homebrewers for help and feedback. - - - +
1
PART 1 | FANCINESS
- - +
+Discord +Github +Patreon +Reddit +
\page diff --git a/client/homebrew/pages/homePage/welcome_msg_v3.md b/client/homebrew/pages/homePage/welcome_msg_v3.md index 9cd1b6062..76dfa134a 100644 --- a/client/homebrew/pages/homePage/welcome_msg_v3.md +++ b/client/homebrew/pages/homePage/welcome_msg_v3.md @@ -1,13 +1,3 @@ -```css -.page #example + table td { - border:1px dashed #00000030; -} - -.page { - padding-bottom : 1.1cm; -} -``` - # The Homebrewery *V3* Welcome traveler from an antique land. Please sit and tell us of what you have seen. The unheard of monsters, who slither and bite. Tell us of the wondrous items and and artifacts you have found, their mysteries yet to be unlocked. Of the vexing vocations and surprising skills you have seen. @@ -44,6 +34,13 @@ If you want to save ink or have a monochrome printer, add the **PRINT → {{fas, [naturalcrit](https://homebrew.naturalcrit.com) }} +{{position:absolute;top:40px;right:-580px +Discord +Github +Patreon +Reddit +}} + {{pageNumber 1}} {{footnote PART 1 | FANCINESS}} @@ -79,12 +76,12 @@ If you wish to sell or in some way gain profit for what's created on this site, #### Crediting Me If you'd like to credit me in your brew, I'd be flattered! Just reference that you made it with The Homebrewery. -### More Homebrew Resources -Check out [r/UnearthedArcana](https://www.reddit.com/r/UnearthedArcana/) and their list of useful resources [here](https://www.reddit.com/r/UnearthedArcana/wiki/resources). - - \page +### More Homebrew Resources +Discord of Many Things Logo +If you are looking for more 5e Homebrew resources check out [r/UnearthedArcana](https://www.reddit.com/r/UnearthedArcana/) and their list of useful resources [here](https://www.reddit.com/r/UnearthedArcana/wiki/resources). The Discord of Many Things is another great resource to connect with fellow homebrewers for help and feedback. + ## Markdown+ The Homebrewery aims to make homebrewing as simple as possible, providing a live editor with Markdown syntax that is more human-readable and faster to write with than raw HTML. @@ -122,6 +119,8 @@ A blank line can be achieved with a run of one or more `:` alone on a line. More Much nicer than `




` +\column + ### Definition Lists V3 uses HTML *definition lists* to create "lists" with hanging indents. @@ -130,14 +129,12 @@ V3 uses HTML *definition lists* to create "lists" with hanging indents. ### Column Breaks Column and page breaks with `\column` and `\page`. -\column - ### Tables Tables now allow column & row spanning between cells. This is included in some updated snippets, but a simplified example is given below. A cell can be spanned across columns by grouping multiple pipe `|` characters at the end of a cell. -Row spanning is achieved by adding a `^` at the end of a cell just before the `|`. +Row spanning is achieved by adding a `^` at the end of a cell just before the `|`. These can be combined to span a cell across both columns and rows. Cells must have the same colspan if they are to be rowspan'd. @@ -164,8 +161,13 @@ Using *Curly Injection* you can assign an id, classes, or specific inline CSS pr ## Snippets Homebrewery comes with a series of *code snippets* found at the top of the editor pane that make it easy to create brews as quickly as possible. Just set your cursor where you want the code to appear in the editor pane, choose a snippet, and make the adjustments you need. +{{pageNumber 2}} +{{footnote PART 2 | BORING STUFF}} + +\page + ## Style Editor Panel {{fa,fa-paint-brush}} Technically released prior to v3 but still new to many users, check out the new **Style Editor** located on the right side of the Snippet bar. This editor accepts CSS for styling without requiring `Discord of Many Things blank \ No newline at end of file diff --git a/themes/assets/github.png b/themes/assets/github.png new file mode 100644 index 0000000000000000000000000000000000000000..9ba6d7768a371c2bb3c9a2e2682fb5f59a9e32c7 GIT binary patch literal 5033 zcmV;a6ISerP)J6t8$S@^lMFZ&F=u} z0dx;(ZFI!k4Dk;N3Yx`aG9T-_))^$=3tZ%KdA}#!Q0R2J#)IS0?&RoHA(cu`R8&+P z0Z>gchB26fA)cd0kIu5Rw4B-5+36(`i7baQIGfGxb#!v%se9GmUcGvCI{@BL#=n;b zWr&S0mz!c`X}PYgt!<20EVh0Sg}4`2S63yA#rj><+qqA|Jp*F-hJUo11 zXJ_X>nwpx}DwS#|W9y8Sl@&ZaJw;AVPVbbIlza}LW2j;el_6FU5fRJV+S=Y|XlQU5 zih!i>@$u--*2v^h2@rtiV9DY1~M^0K|xKu>fTpss%s9L zGLFd%VK5l%QKLp3sj8}))Z5!@k{CmcrKKeT0|WEx>+92HGMUH}F)Wx22654`8h$KHzI<=1b=`37Nt^|+|bbQI|)51 z36b#d@L3Xxr1Y<51^`r7SG!3hlG2EXh}k6cjBZ0BqoQ8>?YG}PlSm{(`h;yx$mMd2 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R?3FJ8Q;^9YIV?ryDvvS~EkmX0tdA|fJs7Cf~eC2Mt-QLED!-J!GUg%^KZxMnwA={b<5UOrZNLC(G_wh*&DL20*L$M(@!Jw z&YansUyvU(*hG7|TyE-Op;w3eBpw_O#6-tb#3v*yUb$k0UaLME%8>n)EPwv_LIA<< zy!Y;;(vs5cm6erYzg@c2?-lCkNG3y@Hnc617czEiUtnNhSwuuc)~m0)@^em3j>*e& z3%z=KNpdvzm`Coh+_wb+e%kq;&O6+i0K@g;V(;F4;QDDD7G^ZHHMLl@Xc6jaZ}j~+ zIXNNrkw>~bJlu~aCMNx3&g|I_Bv%N6aEPU40kX2bsjSo7s2Df!-<00000NkvXXu0mjf;g-46 literal 0 HcmV?d00001 diff --git a/themes/assets/patreon.png b/themes/assets/patreon.png new file mode 100644 index 0000000000000000000000000000000000000000..6c4c0a67372584ce0d21574b72221f5dbaa9f5ed GIT binary patch literal 2436 zcmV-~348X5P)--qD}T^-(CJKSEl@^Gbx>q<)K+ST-=i5fm5NFh)P%ti!plOw=Jpd6@ix$SOvDacS@4kE;4ubhbDpNKH8 zA(uVZ@j{SWfS&+!fg9XzJV9E44Zv!k*3E_u7uy<-eEJRo3-GTPAiga?eEkdJyDPXM zNH$Q0Jmoy$Qk$wUkjv@;qz~C{G^mRJFc0_ycp85`(IrZ6qz|6}^O3%3L6;!8z*b-_ zFho-uUN8h$gY+#|M*}(pDFyZd#Tsn;g<_3J0xq|mNk8HDt84bpcd zs1jrZunW1qrW*5+zK>L4Oobp5kRMccE3lQU+znJBW8ny=f=mH+Vr{}r}YnZSG4oS(BJ$V6n?IxU7d1CcSBX!S&^ zf_wq^D=^qy7X_iC;$wj^$X`E3;0uz$)1PK6tCN<`!bTbH8Pn@aycxx2%fcqS~^6V1G z9Sy-?&+l8h44Te4ZmyGo1EH`$jxnPldnokl2ZjM{ZE)ctoT`VTb#SN_jvZImc5I4~ zOaB_PH}oXPFkqDuHzwW+!-mFxUmr!2rbSbrWIEh43HtX-{Jc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~e#o&)g$OVHK;e753(70YH7vZ#{olw5di%)3SdmY^K~u%|~(TEMjrQ~0ZH!Cl4zCiigN=m&#UIcdpD$n|6k1{v~vnI(25Q$L0biI znV8$_VTr(1HR}}Qc0cUX?Akw_B=sDd0VsJj*9w6pXj=f1nLk=AAv`R}@5L&%!xUwQ zw~1}pyOR}&3s?uHwCPk8g~jyho&$VeSl+g1u|`%*-!4i_OX0o-6PhBkOwrI|A~r=IbS)3U%CK?jmL+45wR65zg(VP?wh!P9U$4}| zT8Sgiw=p=DUD1J;L@Q(no?Of{_Xvjpq22Q}ET`j)j0*0QYBm3hDtv?b6MOZ$BN ztkYo4%bTaKVgC>O#^CmiZCZkF*Y`4H8c;TpWw+c#u zu}z5Y_TMli1CTsmeQ-Gi7ENO>qIPUMa65s0=x^%`ZYWS2stZ;a*ky2Q9=L23R%-~L zX)~zF0rnxhH4k1MoRPX7sQsjTpkx8-gIn?JmOBBjX^u|3;;|$KnFHVlQOV&MdZ@LPf7rsEzg>IP?9)e b?xg<%;9rZ(OEzCJ00000NkvXXu0mjfUU1L% literal 0 HcmV?d00001 From 039e4dd4e597f316e9ec9c70ff3b0c2c1e551412 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Fri, 28 Jan 2022 00:38:00 -0500 Subject: [PATCH 3/5] Revert extraneous Config changes Looks like these were part of something else? In any case it conflicts with #1981 so just undoing these changes. --- server.js | 2 +- server/app.js | 2 +- server/googleActions.js | 2 +- server/token.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server.js b/server.js index 22db8a63b..c9ce63c8f 100644 --- a/server.js +++ b/server.js @@ -4,7 +4,7 @@ const server = require('./server/app.js'); const config = require('nconf') .argv() .env({ lowerCase: true }) - .file('environment', { file: `${__dirname}/config/${process.env.NODE_ENV}.json` }) + .file('environment', { file: `config/${process.env.NODE_ENV}.json` }) .file('defaults', { file: 'config/default.json' }); DB.connect(config).then(()=>{ diff --git a/server/app.js b/server/app.js index 0c41e7d06..c36533b9b 100644 --- a/server/app.js +++ b/server/app.js @@ -75,7 +75,7 @@ app.use(require('./forcessl.mw.js')); const config = require('nconf') .argv() .env({ lowerCase: true }) - .file('environment', { file: `${__dirname}/../config/${process.env.NODE_ENV}.json` }) + .file('environment', { file: `config/${process.env.NODE_ENV}.json` }) .file('defaults', { file: 'config/default.json' }); //Account Middleware diff --git a/server/googleActions.js b/server/googleActions.js index c075bae4b..0050cb81d 100644 --- a/server/googleActions.js +++ b/server/googleActions.js @@ -6,7 +6,7 @@ const token = require('./token.js'); const config = require('nconf') .argv() .env({ lowerCase: true }) // Load environment variables - .file('environment', { file: `${__dirname}/../config/${process.env.NODE_ENV}.json` }) + .file('environment', { file: `config/${process.env.NODE_ENV}.json` }) .file('defaults', { file: 'config/default.json' }); //let oAuth2Client; diff --git a/server/token.js b/server/token.js index 8baf60e06..40d76a484 100644 --- a/server/token.js +++ b/server/token.js @@ -4,7 +4,7 @@ const jwt = require('jwt-simple'); const config = require('nconf') .argv() .env({ lowerCase: true }) // Load environment variables - .file('environment', { file: `${__dirname}/../config/${process.env.NODE_ENV}.json` }) + .file('environment', { file: `config/${process.env.NODE_ENV}.json` }) .file('defaults', { file: 'config/default.json' }); // Generate an Access Token for the given User ID From 4c08f4a6e1e4ab117265e7bbec292f3bc15cf921 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Fri, 28 Jan 2022 09:44:43 -0500 Subject: [PATCH 4/5] Condense v3_preview to fit on two pages again. --- .../homebrew/pages/homePage/welcome_msg_v3.md | 29 +++++++------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/client/homebrew/pages/homePage/welcome_msg_v3.md b/client/homebrew/pages/homePage/welcome_msg_v3.md index 76dfa134a..704c566f2 100644 --- a/client/homebrew/pages/homePage/welcome_msg_v3.md +++ b/client/homebrew/pages/homePage/welcome_msg_v3.md @@ -47,9 +47,9 @@ If you want to save ink or have a monochrome printer, add the **PRINT → {{fas, \column ## New in V3.0.0 -With the latest major update to *The Homebrewery* we've implemented an extended Markdown-like syntax for block and span elements, plus a few other changes, eliminating the need for HTML tags like `div` and `span` in most cases. No raw HTML tags should be needed in a brew, and going forward, raw HTML will no longer receive debugging support (*but can still be used if you insist*). +We've implemented an extended Markdown-like syntax for block and span elements, plus a few other changes, eliminating the need for HTML tags like `div` and `span` in most cases. No raw HTML tags should be needed in a brew (*but can still be used if you insist*). -Much of the syntax and styling has changed in V3. Code in one version may be broken in the other, and updating an older brew to V3 will require more than just a copy and paste. *However*, all brews made prior to the release of v3.0.0 will still render normally, and you may switch between the "Legacy" brew renderer and the newer "V3" renderer via the {{fa,fa-info-circle}} **Properties** button on your brew at any time. +Much of the syntax and styling has changed in V3, so converting a Legacy brew to V3 (or vice-versa) will require tweaking your document. *However*, all brews made prior to the release of v3.0.0 will still render normally, and you may switch between the "Legacy" brew renderer and the newer "V3" renderer via the {{fa,fa-info-circle}} **Properties** button on your brew at any time. Scroll down to the next page for a brief summary of the changes and new features available in V3! @@ -76,12 +76,12 @@ If you wish to sell or in some way gain profit for what's created on this site, #### Crediting Me If you'd like to credit me in your brew, I'd be flattered! Just reference that you made it with The Homebrewery. -\page - ### More Homebrew Resources Discord of Many Things Logo If you are looking for more 5e Homebrew resources check out [r/UnearthedArcana](https://www.reddit.com/r/UnearthedArcana/) and their list of useful resources [here](https://www.reddit.com/r/UnearthedArcana/wiki/resources). The Discord of Many Things is another great resource to connect with fellow homebrewers for help and feedback. +\page + ## Markdown+ The Homebrewery aims to make homebrewing as simple as possible, providing a live editor with Markdown syntax that is more human-readable and faster to write with than raw HTML. @@ -119,22 +119,20 @@ A blank line can be achieved with a run of one or more `:` alone on a line. More Much nicer than `




` -\column - ### Definition Lists -V3 uses HTML *definition lists* to create "lists" with hanging indents. - -**Senses** :: Here is some text that is long and overflows into a second line, creating a "hanging indent". +**Example** :: V3 uses HTML *definition lists* to create "lists" with hanging indents. ### Column Breaks Column and page breaks with `\column` and `\page`. +\column + ### Tables Tables now allow column & row spanning between cells. This is included in some updated snippets, but a simplified example is given below. A cell can be spanned across columns by grouping multiple pipe `|` characters at the end of a cell. -Row spanning is achieved by adding a `^` at the end of a cell just before the `|`. +Row spanning is achieved by adding a `^` at the end of a cell just before the `|`. These can be combined to span a cell across both columns and rows. Cells must have the same colspan if they are to be rowspan'd. @@ -150,9 +148,9 @@ These can be combined to span a cell across both columns and rows. Cells must ha | 6A | 6B ^| 6C | ## Images -Images must be hosted online somewhere, like [Imgur](https://www.imgur.com). You use the address to that image to reference it in your brew\*. Images can be included using Markdown-style images. +Images must be hosted online somewhere, like [Imgur](https://www.imgur.com). You use the address to that image to reference it in your brew\*. -Using *Curly Injection* you can assign an id, classes, or specific inline CSS properties to the image. +Using *Curly Injection* you can assign an id, classes, or inline CSS properties to the Markdown image syntax. ![alt-text](https://s-media-cache-ak0.pinimg.com/736x/4a/81/79/4a8179462cfdf39054a418efd4cb743e.jpg) {width:100px,border:"2px solid",border-radius:10px} @@ -161,13 +159,8 @@ Using *Curly Injection* you can assign an id, classes, or specific inline CSS pr ## Snippets Homebrewery comes with a series of *code snippets* found at the top of the editor pane that make it easy to create brews as quickly as possible. Just set your cursor where you want the code to appear in the editor pane, choose a snippet, and make the adjustments you need. -{{pageNumber 2}} -{{footnote PART 2 | BORING STUFF}} - -\page - ## Style Editor Panel {{fa,fa-paint-brush}} Technically released prior to v3 but still new to many users, check out the new **Style Editor** located on the right side of the Snippet bar. This editor accepts CSS for styling without requiring `