Utility to convert JSON data (for content you own) from 5etools or pf2etools into Obsidian-friendly Markdown.
APACHE-2.0 License
Bot releases are visible (Hide)
Published by github-actions[bot] about 1 year ago
β¨ New template documentation is available in docs. Content is generated from javadoc in the various *.qute packages (for template-accessible fields and methods). It may not be complete.. PRs to improve it are welcome.
name
and desc
, just like other traits. See the default monster template for an example.If you use the Templater plugin, you can use a templater script to rename files in your vault before merging with freshly generated content. View the contents of the template before running it, and adjust parameters at the top to match your Vault.
We'd like to thank the following people for their contributions:
Caedis, Sigrunixia, ΠΠ»Π΅ΠΊΡΠ΅ΠΉ Π’ΡΡΠΎΠ²ΡΠΊΠΈΠΉ
Published by github-actions[bot] over 1 year ago
π₯ As of 2.0.0, D&D 5e subclasses now use the source of the subclass in the file name. If you are updating from 1.x and use the Templater plugin, you can use a templater script to rename files in your vault before merging with freshly generated content. View the contents of the template before running it, and adjust parameters at the top to match your Vault.
Published by github-actions[bot] over 1 year ago
π₯ As of 2.0.0, D&D 5e subclasses now use the source of the subclass in the file name. If you are updating from 1.x and use the Templater plugin, you can use a templater script to rename files in your vault before merging with freshly generated content. View the contents of the template before running it, and adjust parameters at the top to match your Vault.
{@style..}
tagsPublished by github-actions[bot] over 1 year ago
π₯ As of 2.0.0, D&D 5e subclasses now use the source of the subclass in the file name. If you are updating from 1.x and use the Templater plugin, you can use a templater script to rename files in your vault before merging with freshly generated content. View the contents of the template before running it, and adjust parameters at the top to match your Vault.
Published by github-actions[bot] over 1 year ago
π₯ As of 2.0.0, D&D 5e subclasses now use the source of the subclass in the file name. If you are updating from 1.x and use the Templater plugin, you can use a templater script to rename files in your vault before merging with freshly generated content. View the contents of the template before running it, and adjust parameters at the top to match your Vault.
Published by github-actions[bot] over 1 year ago
π₯ As of 2.0.0, D&D 5e subclasses now use the source of the subclass in the file name. If you are updating from 1.x and use the Templater plugin, you can use a templater script to rename files in your vault before merging with freshly generated content. View the contents of the template before running it, and adjust parameters at the top to match your Vault.
Published by github-actions[bot] over 1 year ago
π₯ A leading slash (/
) is no longer used at the beginning of compendium and root paths. This should allow you to move these two directories around more easily.
π₯ D&D 5e subclasses now use the source of the subclass in the file name.
If you use the Templater plugin, you can use a templater script to rename files in your vault before merging with freshly generated content. View the contents of the template before running it, and adjust parameters at the top to match your Vault.
π¨ CSS styles for D&D 5e and Pathfinder are now available in examples/css-snippets
.
π Admonitions are also available for import:
Note: admonitions-5e.json
and other-admonitions.json
use colors from CSS snippets to adjust for light and dark mode.
We'd like to thank the following people for their contributions:
Sigrunixia
Published by github-actions[bot] over 1 year ago
We'd like to thank the following people for their contributions:
Colin McLear
Published by github-actions[bot] over 1 year ago
We'd like to thank the following people for their contributions:
Colin McLear, Steve Axthelm
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] almost 2 years ago
The conversion tool downloads fluff images into img
directories within each type, e.g. backgrounds/img
or bestiary/aberration/img
. These images are unordered, and are not referenced in entry text. Templates must be modified to include them.
To display all images, you can do something like this:
{#each resource.fluffImages}![{it.caption}]({it.path})
{/each}
Note that the line above ends with two spaces, which serves as a line break when you have strict line endings enabled. You may need something a little different to get things to wrap the way you want in the case that there are multiple images (which is infrequent for these types).
You can also use two separate blocks, such that the first image is used at the top of the document, and any others are included later:
{#if resource.fluffImages && resource.fluffImages.0 }
![{resource.fluffImages.0.caption}]({resource.fluffImages.0.path}#right)
{/if}
...
{#each resource.fluffImages}{#if it_index != 0}![{it.caption}]({it.path}#center)
{/if}{/each}
Notice the #right
and #center
anchor tags in the example above. The following CSS snippet defines formatting for two anchor tags: #right
(which will float the image to the right) and #center
(which will display the image as a centered block).
.json5e-background div[src$="#center"],
.json5e-item div[src$="#center"],
.json5e-monster div[src$="#center"],
.json5e-race div[src$="#center"],
.json5e-spell div[src$="#center"] {
text-align: center;
}
.json5e-background div[src$="#center"] img,
.json5e-item div[src$="#center"] img,
.json5e-monster div[src$="#center"] img,
.json5e-race div[src$="#center"] img,
.json5e-spell div[src$="#center"] img {
height: 300px;
}
.json5e-background div[src$="#right"],
.json5e-item div[src$="#right"],
.json5e-monster div[src$="#right"],
.json5e-race div[src$="#right"],
.json5e-spell div[src$="#right"] {
float: right;
margin-left: 5px;
}
.json5e-background div[src$="#right"] img,
.json5e-item div[src$="#right"] img,
.json5e-monster div[src$="#right"] img,
.json5e-race div[src$="#right"] img,
.json5e-spell div[src$="#right"] img {
height: 300px;
}
.rendered-widget .admonition-statblock-parent,
.markdown-rendered .admonition-statblock-parent,
.markdown-preview-section .admonition-statblock-parent {
clear: both;
}
Notes:
clear
setting to the admonition parent. Some text descriptions are shorter than the constrained image height. Setting clear: both
on admonition-parent
ensures that images floated to the right do not impact the statblock
display.images-
.Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Binary releases!
You do not need to use Java or JBang to run the converter if you use one of the platform-specific binaries.
Download and extract the zip or tgz for your platform. A 5e-convert
binary executable will be in the bin
directory. Invoke this executable as noted in README.md.
For example:
Linux/Mac:
./bin/5e-convert --help
Windows:
.\bin.\5e-convert.exe --help
Published by github-actions[bot] almost 2 years ago
Text for changes to spells at higher levels is added to spells a little differently depending on how complicated the spell is.
Some spells effectively have subsections. Create or Destroy Water, from the PHB, has one subsection describing how water is created, and another describing how it is destroyed. In many layouts, there is just a bit of bold text to visually highlight this information. I've opted to make these sections (with a heading) instead, because you can then embed/transclude just the variant you want into your notes where that is relevant.
If a spell has sections, then "At Higher Levels" will be added as an additional section. Otherwise, it will be appended with At Higher Levels. as leading eyecatcher text.
The default spell template has also been amended. It will test for sections in the spell text, and if so, now inserts a ## Summary
header above the Classes/Sources information, to ensure that the penultimate section can be embedded cleanly.
{#if resource.hasSections }
## Summary
{/if}
**Classes**: {resource.classes}
Published by github-actions[bot] almost 2 years ago
401b4ce β¨ Support flowcharts using callouts. Resolves #31
e3390b2 Bump quarkus.platform.version from 2.13.2.Final to 2.13.3.Final
7a13a25 π Add note about include support to README.md.
4be2321 β¨ Support optfeature (from ttp). Fixes #32
b319c34 π detect styled rows. Fixes #35
6e530fd π Always sign returned modifier. Fixes #34
fc90f03 π add download tag (for fun, no jitpack)
f97b032 π Fix links
Published by github-actions[bot] about 2 years ago
As shown in monster2md-scores.txt, you can now access ability scores directly to achieve alternate layouts in templates, for example:
- STR: {resource.scores.str} `dice: 1d20 {resource.scores.strMod}`
- DEX: {resource.scores.dex} `dice: 1d20 {resource.scores.dexMod}`
- CON: {resource.scores.con} `dice: 1d20 {resource.scores.conMod}`
- INT: {resource.scores.int} `dice: 1d20 {resource.scores.intMod}`
- WIS: {resource.scores.wis} `dice: 1d20 {resource.scores.wisMod}`
- CHA: {resource.scores.cha} `dice: 1d20 {resource.scores.chaMod}`