We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4f80a3 commit a40f4f1Copy full SHA for a40f4f1
src/remark/index.ts
@@ -32,17 +32,21 @@ export const parseMarkdown = (markdownText: string): ParserResult => {
32
// })
33
.use(rehypeAutolinkHeadings, {
34
properties: {
35
- className: ['springtide-anchor'],
+ className: [
36
+ 'springtide-anchor opacity-0 hover:opacity-100 transition-opacity duration-200 ease-in-out text-sm relative -bottom-2',
37
+ ],
38
ariaHidden: true,
39
tabIndex: -1,
40
},
- content(node) {
41
+ content() {
42
return [
43
{
44
type: 'element',
45
tagName: 'span',
46
- className: ['icon-[mingcute--link-line]'],
47
48
+ 'icon-[mingcute--link-line] -translate-x-full absolute -left-2 ',
49
50
51
children: [],
52
0 commit comments