You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
# Markdown Attributes for Obsidian.md
2
2
3
-
Allows the use of `{: .class id='id' data=value }` markdown attributes inside Obsidian.md.
3
+
Allows the use of `{ .class id='id' data=value }` markdown attributes inside Obsidian.md.
4
4
5
5
This plugin is currently proof of concept; however, no loss of data should occur. It is possible that rendering errors may happen. If so, please create an issue including the source text that caused the issue.
6
6
7
7
## Using the Plugin
8
8
9
9
Add your attributes inside a curly bracket with a colon, like this:
10
10
11
-
`{: .class }`
11
+
`{ .class }`
12
12
13
13
See below for usage with specific elements.
14
14
@@ -21,7 +21,7 @@ Currently, the ID attribute must be set using `id=value` due to Obsidian's tags.
21
21
Inline text elements such as italics, bold, highlight, etc. should have their attributes placed _inside_ the symbol:
22
22
23
23
```
24
-
I'm normal text, but *I'm italic {: class='italics' }*, **I'm bold {: .bold }** and ==I'm highlighted {: id=highlight }==.
24
+
I'm normal text, but *I'm italic { class='italics' }*, **I'm bold { .bold }** and ==I'm highlighted { id=highlight }==.
25
25
```
26
26
27
27
### Paragraphs
@@ -32,14 +32,14 @@ Paragraph attributes should be placed after the last line of the block.
32
32
This is a paragraph.
33
33
This is another line of the paragraph.
34
34
This is the last line.
35
-
{: id=my_paragraph .class }
35
+
{ id=my_paragraph .class }
36
36
```
37
37
38
38
### Headers
39
39
40
40
Attributes must be added to headers at the end of the line.
41
41
42
-
`### A Header {: id=header .header-class }`
42
+
`### A Header { id=header .header-class }`
43
43
44
44
### Tables
45
45
@@ -49,15 +49,15 @@ Attributes can be added to the `<table>` element by placing the attribute on the
49
49
| header1 | header2 |
50
50
| ------- | ------- |
51
51
| column1 | column2 |
52
-
{: .table-class}
52
+
{ .table-class}
53
53
```
54
54
55
55
Attributes can be added to individual table cells like so:
56
56
57
57
```markdown
58
-
| header1 {: .class} | header2 |
58
+
| header1 { .class} | header2 |
59
59
| ------------------ | ---------------------- |
60
-
| column1 | column2 {: .class-two} |
60
+
| column1 | column2 { .class-two} |
61
61
```
62
62
63
63
It is not currently possible to add attributes to `<tr>` or `<thead>` elements.
@@ -66,42 +66,42 @@ It is not currently possible to add attributes to `<tr>` or `<thead>` elements.
66
66
67
67
Both Wikilinks and markdown syntax links may have attributes placed on them.
0 commit comments