Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tategakibunko/nehan-anchor

nehan plugin for preview anchor link
https://github.com/tategakibunko/nehan-anchor

anchor nehan plugin preview

Last synced: 1 day ago
JSON representation

nehan plugin for preview anchor link

Awesome Lists containing this project

README

        

# nehan-anchor

[nehan](https://github.com/tategakibunko/nehan) plugin for preview anchor link.

## create nehan style

```typescript
import { Anchor, PagedNehanDocument, CssStyleSheet } from 'nehan';
import * as AnchorStyle from 'nehan-anchor';
const anchorStyle: CssStyleSheet = AnchorStyle.create({
previewSpacing: 10,
onClickAnchorLink(anchor: Anchor){
console.log("click anchor:", anchor);
}
});
const pd = new PagedNehanDocument("

foo
hover", {
styleSheets:[
anchorStyle, // add anchor style!
]
});
```

## use markup

```html

some blockquoted text with id attribute

And you can preview it by creating anchor link like this.
```