Skip to content

Commit

Permalink
Merge pull request #11 from hotoo/feat/tags
Browse files Browse the repository at this point in the history
Feat/tags and remove dangerouslySetInnerHTML
  • Loading branch information
hotoo authored Dec 23, 2023
2 parents c11d384 + f0bb2aa commit 50eca0a
Show file tree
Hide file tree
Showing 10 changed files with 562 additions and 196 deletions.
24 changes: 18 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,29 @@ Now we support meta data:

`{@mention}` is placeholder for mention name.

* `hashtag`: custom hashtag styles.
* hashtag and colors: direct use `#FF0000` or hashtag custom tags styles.

```md
# #HashTag Demo

- hashtag:
- tag-name: text-color, background-color
- life: yellow, #f00
- job: rgb(255,255,255), rgba(255,0,0,0.5)
- tags:
- #tag-name: background-color, text-color
- #life: yellow, #f00
- #job: rgb(255,255,255), rgba(255,0,0,0.5)
- #some-tag: red

----

- 2014 this is my #life
- 2023 this line color is red #f00

## Group #F00
- 2023 all events in this group is red.
- 2023 red line.

## Group #F00 #0F0
- 2023 all events in this group is red bar and green text.
- 2023 red bar and green text.
```

following meta data support come soon.
Expand Down Expand Up @@ -166,13 +176,15 @@ for anonymous group.
### Link

```markdown
* 2014 this is a [link](url)
* 2014 this is a [link](url)
* 2014 this is a [[inner link]]
```

### Image

```markdown
* 2014 this is an image: ![alt](image-url)
* 2014 this is an internal image: ![[image file]]
```

### Strong
Expand Down
5 changes: 2 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"id": "markline",
"name": "Markline",
"version": "1.1.0",
"version": "1.2.0",
"minAppVersion": "0.15.0",
"description": "Show timeline from markdown in Obsidian.",
"description": "Timeline view from markdown.",
"author": "闲耘",
"authorUrl": "https://hotoo.github.io/",
"fundingUrl": "",
"isDesktopOnly": false
}
206 changes: 202 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 50eca0a

Please sign in to comment.