ebullient / ttrpg-convert-cli

Utility to convert JSON data (for content you own) from 5etools or pf2etools into Obsidian-friendly Markdown.
https://www.ebullient.dev/projects/ttrpg-convert-cli/
Apache License 2.0
197 stars 40 forks source link

Monster names as links for 5e Statblocks? #76

Closed cjolson closed 1 year ago

cjolson commented 1 year ago

If the name of the monster in the YAML is a link to the monster note, then it would be helpful for accessing the relevant monster file quickly from the initiative tracker Combatant window or from the Statblocks itself. Currently it is not a link and I don't think I can easily make that change in the template for my monsters.

ebullient commented 1 year ago

@valentine195 .. what do you think we can do with this?

valentine195 commented 1 year ago

Could statblock-link work for this?

ebullient commented 1 year ago

Resolved by https://github.com/valentine195/obsidian-5e-statblocks/pull/126 and https://github.com/valentine195/obsidian-5e-statblocks/pull/127

ebullient commented 1 year ago

With newest TTRPG statblocks & Initiative Tracker, I think this is fixed.

statblock-link now works for links that are just anchors: statblock-link: "#^statblock"

There is an option to embed the block target into the creature view of Initiative tracker (instead of the rendered statblock). It is no longer necessary to have blocks in both the header and the body.. the minimal initiative tracker block works.

Even without the rendering change, having statblock-link: "#^statblock" in the header will turn monster name into a link.