Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tategakibunko/nehan-anchor
- Owner: tategakibunko
- License: mit
- Created: 2021-03-13T07:51:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-21T12:46:05.000Z (over 3 years ago)
- Last Synced: 2024-10-31T23:02:35.267Z (14 days ago)
- Topics: anchor, nehan, plugin, preview
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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("foohover", {
styleSheets:[
anchorStyle, // add anchor style!
]
});
```## use markup
```html
some blockquoted text with id attributeAnd you can preview it by creating anchor link like this.
```