Skip to content

Commit

Permalink
Added 'Era' Suffix; Remove '.md' from title
Browse files Browse the repository at this point in the history
## Era Display
Added the "era" data field to the span block. If specified, this will be appended to the date in the timeline display.

For example, this span would display in the timeline as "144-43-49-00 AB".
```
<span
	  class='ob-timelines'
	  data-date='144-43-49-00'
     data-era="AB"
>
```

## Remove `.md` from autofilled titles
When auto-filling the title based on the filename, remove the `.md` from the end. More in line with how other linking/embedding is displayed through obsidian.

Also updated the `package.json` to the latest standard for including the obsidian API. See obsidianmd/obsidian-api#17.
  • Loading branch information
tlm2021 committed Jul 25, 2021
1 parent f0afbf3 commit b9b290b
Show file tree
Hide file tree
Showing 5 changed files with 623 additions and 600 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,23 @@ The note will be ignored in the following cases:
- If an invalid url is given (an empty black section will be seen for that note card)
- Currently only `http` & `absolute local path` will render, in the current obsidian release of `v0.10.13` obsidian links for background images are blocked from rendering, hopefully it is promised that this will be removed in the upcuming release.

### Era:
- Optional
- Adds this text to the date span in the timeline as an era designation. Useful for fictional calendars.
- Applied after the date is formatted. So `2300-00-00-00` with the era set to `AB` would display `2300 AB`.

### CSS Class:
- Optional
- Adds the applied css class to the note card associated with this span info block


## Release Notes

### v0.3.3
- Added optional span attribute 'era', allowing an era suffix to be displayed on the timeline.
- Updated `package.json` to latest obsidian API standard.atch
- Removes the `.md` extension when auto-filling the title

### v0.2.1
- Remove escaping of `quotes / double quotes and ticks` from title and text (no longer needed)
- Additional optional span attrictute `css class` allowing to custumize each card of the timeline
Expand Down
Loading

0 comments on commit b9b290b

Please sign in to comment.