diff --git a/rpg-docs/.meteor/packages b/rpg-docs/.meteor/packages
index bbd56e0f..63666300 100644
--- a/rpg-docs/.meteor/packages
+++ b/rpg-docs/.meteor/packages
@@ -27,3 +27,4 @@ fourseven:scss@2.1.1
wolves:bourbon
meteorhacks:subs-manager
meteorhacks:kadira
+chuangbo:marked
diff --git a/rpg-docs/.meteor/versions b/rpg-docs/.meteor/versions
index d99c6a38..f890e0c5 100644
--- a/rpg-docs/.meteor/versions
+++ b/rpg-docs/.meteor/versions
@@ -14,6 +14,7 @@ blaze-tools@1.0.3
boilerplate-generator@1.0.3
callback-hook@1.0.3
check@1.0.5
+chuangbo:marked@0.3.5
coffeescript@1.0.6
dburles:collection-helpers@1.0.3
dburles:mongo-collection-instances@0.3.3
diff --git a/rpg-docs/client/style/main.scss b/rpg-docs/client/style/main.scss
index 77a3172f..5006ac3b 100644
--- a/rpg-docs/client/style/main.scss
+++ b/rpg-docs/client/style/main.scss
@@ -29,6 +29,11 @@ core-header-panel[drawer] {
box-shadow: 2px 0px 5px 0px rgba(0,0,0,0.2);
}
+//Paragraphs
+p {
+ margin-bottom: 8px;
+}
+
//Horizontal rule
hr {
background-color: #444;
@@ -37,7 +42,7 @@ hr {
color: #444;
height: 1px;
line-height: 0;
- margin: 16px -16px;
+ margin: 16px 0;
text-align: center;
}
diff --git a/rpg-docs/client/views/character/features/featureDialog/featureDialog.html b/rpg-docs/client/views/character/features/featureDialog/featureDialog.html
index 1ee51cd8..500da4f9 100644
--- a/rpg-docs/client/views/character/features/featureDialog/featureDialog.html
+++ b/rpg-docs/client/views/character/features/featureDialog/featureDialog.html
@@ -32,7 +32,7 @@
{{/if}}
{{#if description}}
-
{{evaluateString charId description}}
+ {{#markdown}}{{evaluateString charId description}}{{/markdown}}
{{/if}}
{{> effectsViewList charId=charId parentId=_id}}
diff --git a/rpg-docs/client/views/character/features/features.html b/rpg-docs/client/views/character/features/features.html
index 5726c166..165bd73a 100644
--- a/rpg-docs/client/views/character/features/features.html
+++ b/rpg-docs/client/views/character/features/features.html
@@ -102,8 +102,9 @@
{{/if}}
{{#if description}}
- {{evaluateString charId shortDescription}}
+
+ {{#markdown}}{{evaluateString charId shortDescription}}{{/markdown}}
+
{{/if}}
{{#if hasUses}}
diff --git a/rpg-docs/client/views/character/features/features.js b/rpg-docs/client/views/character/features/features.js
index a0b1f329..99687f39 100644
--- a/rpg-docs/client/views/character/features/features.js
+++ b/rpg-docs/client/views/character/features/features.js
@@ -5,7 +5,7 @@ Template.features.helpers({
},
shortDescription: function() {
if (_.isString(this.description)){
- return this.description.split(/[\n\r]{3,}/)[0];
+ return this.description.split(/^( *[-*_]){3,} *(?:\n+|$)/m)[0];
}
},
hasUses: function(){
diff --git a/rpg-docs/client/views/character/inventory/containerDialog/containerDialog.html b/rpg-docs/client/views/character/inventory/containerDialog/containerDialog.html
index dfcf1ca1..2682fa5e 100644
--- a/rpg-docs/client/views/character/inventory/containerDialog/containerDialog.html
+++ b/rpg-docs/client/views/character/inventory/containerDialog/containerDialog.html
@@ -41,6 +41,6 @@
{{#if description}}
- {{evaluateString charId description}}
+ {{#markdown}}{{evaluateString charId description}}{{/markdown}}
{{/if}}
diff --git a/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.html b/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.html
index 3b67667d..bab6cea1 100644
--- a/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.html
+++ b/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.html
@@ -18,8 +18,8 @@
{{#if requiresAttunement}}Requires Attunement
{{/if}}
{{#if description}}
-
- {{evaluateString charId description}}
+
+ {{#markdown}}{{evaluateString charId description}}{{/markdown}}
{{/if}}
{{> effectsViewList charId=charId parentId=_id}}
{{> attacksViewList charId=charId parentId=_id}}
diff --git a/rpg-docs/client/views/character/journal/experienceDialog/experienceDialog.html b/rpg-docs/client/views/character/journal/experienceDialog/experienceDialog.html
index 600361f6..6573d590 100644
--- a/rpg-docs/client/views/character/journal/experienceDialog/experienceDialog.html
+++ b/rpg-docs/client/views/character/journal/experienceDialog/experienceDialog.html
@@ -6,7 +6,7 @@
{{#if description}}
- {{description}}
+ {{#markdown}}{{description}}{{/markdown}}
{{/if}}
{{else}}
{{> experienceEdit}}
diff --git a/rpg-docs/client/views/character/journal/journal.html b/rpg-docs/client/views/character/journal/journal.html
index 6d2a048a..2f69fb6e 100644
--- a/rpg-docs/client/views/character/journal/journal.html
+++ b/rpg-docs/client/views/character/journal/journal.html
@@ -87,7 +87,7 @@
layout horizontal center>
{{name}}
- {{description}}
+ {{#markdown}}{{description}}{{/markdown}}
{{/each}}
diff --git a/rpg-docs/client/views/character/journal/noteDialog/noteDialog.html b/rpg-docs/client/views/character/journal/noteDialog/noteDialog.html
index 754a9a7b..ecb6c682 100644
--- a/rpg-docs/client/views/character/journal/noteDialog/noteDialog.html
+++ b/rpg-docs/client/views/character/journal/noteDialog/noteDialog.html
@@ -1,7 +1,7 @@
{{#with note}}
{{#baseDialog title=name class=colorClass startEditing=../startEditing}}
- {{description}}
+ {{#markdown}}{{description}}{{/markdown}}
{{else}}
{{> noteDialogEdit}}
{{/baseDialog}}
diff --git a/rpg-docs/client/views/character/persona/backgroundDialog/backgroundDialog.html b/rpg-docs/client/views/character/persona/backgroundDialog/backgroundDialog.html
index 8bbf52ff..4236ea94 100644
--- a/rpg-docs/client/views/character/persona/backgroundDialog/backgroundDialog.html
+++ b/rpg-docs/client/views/character/persona/backgroundDialog/backgroundDialog.html
@@ -1,6 +1,6 @@
{{#baseDialog title=title class=colorClass hideColor="true" hideDelete="true"}}
- {{evaluateString charId value}}
+ {{#markdown}}{{evaluateString charId value}}{{/markdown}}
{{> proficiencyViewList charId=charId parentId=charId parentGroup="background"}}
{{else}}
{{> textDialogEdit}}
diff --git a/rpg-docs/client/views/character/persona/persona.html b/rpg-docs/client/views/character/persona/persona.html
index b8a8cb52..b1762e50 100644
--- a/rpg-docs/client/views/character/persona/persona.html
+++ b/rpg-docs/client/views/character/persona/persona.html
@@ -68,6 +68,6 @@
{{title}}
- {{> UI.contentBlock}}
+ {{#markdown}}{{> UI.contentBlock}}{{/markdown}}
\ No newline at end of file
diff --git a/rpg-docs/client/views/character/persona/textDialog/textDialog.html b/rpg-docs/client/views/character/persona/textDialog/textDialog.html
index e64162f2..215d6a92 100644
--- a/rpg-docs/client/views/character/persona/textDialog/textDialog.html
+++ b/rpg-docs/client/views/character/persona/textDialog/textDialog.html
@@ -1,6 +1,6 @@
{{#baseDialog title=title class=colorClass hideColor="true" hideDelete="true" startEditing=startEditing}}
- {{evaluateString charId value}}
+ {{#markdown}}{{evaluateString charId value}}{{/markdown}}
{{else}}
{{> textDialogEdit}}
{{/baseDialog}}
diff --git a/rpg-docs/client/views/character/spells/spellDialog/spellDialog.html b/rpg-docs/client/views/character/spells/spellDialog/spellDialog.html
index 6a4577fb..6f270176 100644
--- a/rpg-docs/client/views/character/spells/spellDialog/spellDialog.html
+++ b/rpg-docs/client/views/character/spells/spellDialog/spellDialog.html
@@ -34,7 +34,7 @@
{{/if}}
- {{evaluateString charId description}}
+ {{#markdown}}{{evaluateString charId description}}{{/markdown}}
{{> attacksViewList charId=charId parentId=_id}}
diff --git a/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.html b/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.html
index f5f7cbfb..3bed65e6 100644
--- a/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.html
+++ b/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.html
@@ -20,7 +20,7 @@
{{/if}}
- {{evaluateString charId description}}
+ {{#markdown}}{{evaluateString charId description}}{{/markdown}}
{{else}}