-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from yunu7067/develop
v1.0.10
- Loading branch information
Showing
93 changed files
with
1,386 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** @type {import("@types/eslint").Linter.Config} */ | ||
module.exports = { | ||
ignorePatterns: ['node_modules', 'dist'], | ||
root: true, | ||
env: { | ||
node: true, | ||
}, | ||
plugins: [], | ||
extends: [], | ||
overrides: [], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
dist | ||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
description: Lorem Ipsum! | ||
|
||
--- | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut venenatis eleifend ipsum, at blandit arcu faucibus vel. Suspendisse finibus erat sit amet lobortis pharetra. Quisque tempor pretium elementum. Vestibulum interdum est tellus, eget pellentesque velit molestie in. In hac habitasse platea dictumst. Donec ut porta leo. Vivamus luctus tellus a velit semper facilisis. Mauris pharetra ligula nec leo elementum, id mollis justo tempor. Proin accumsan hendrerit nisi, id tincidunt enim. Nullam scelerisque dolor ut erat tristique, vitae dapibus dolor placerat. | ||
|
||
Nullam accumsan erat ut laoreet sodales. Nullam at lorem eget orci faucibus auctor. Vivamus vel aliquet ante. Ut ut arcu non neque iaculis bibendum. Vestibulum a sem massa. In non libero efficitur, pretium erat sed, placerat ante. Mauris nec molestie urna. In fermentum dui urna, in bibendum massa convallis eget. Fusce congue imperdiet ligula. Sed accumsan nibh sed venenatis mattis. | ||
|
||
Quisque a feugiat nunc. Nulla facilisi. Curabitur cursus ultrices lectus, et condimentum ante ultrices commodo. Suspendisse consectetur nisl eget arcu fermentum imperdiet. Vivamus viverra vitae mi eu sodales. Morbi accumsan ligula purus, eget consectetur odio posuere sed. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nunc felis ex, rhoncus eu purus vel, aliquet luctus est. Quisque maximus ligula id dui lobortis, id eleifend felis fermentum. Sed vulputate eu turpis id sollicitudin. Sed tempus ultricies leo, sed malesuada dolor mattis eget. | ||
|
||
Mauris eget odio eu ante egestas tincidunt. Praesent tristique tincidunt imperdiet. Pellentesque ut maximus nisi. Sed congue mi eu diam accumsan imperdiet. Fusce quis tincidunt odio, eu accumsan quam. Donec porttitor, ex rutrum gravida hendrerit, lectus diam auctor orci, sit amet vestibulum est elit consequat nibh. Nunc dictum leo quis leo vestibulum scelerisque. Cras ut lorem iaculis, molestie turpis a, convallis massa. Duis a dolor sit amet risus mattis sodales. Pellentesque id ultricies metus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Phasellus id feugiat nisl. Fusce quam metus, sollicitudin ut neque a, hendrerit condimentum justo. Cras molestie venenatis ante quis mollis. Etiam pharetra, est sit amet bibendum rhoncus, arcu purus ullamcorper justo, eget lobortis justo urna maximus dolor. | ||
|
||
Pellentesque ultrices metus in velit bibendum pretium. Sed aliquet, odio ac cursus posuere, erat quam ultrices nisl, non ultricies tortor quam non ante. Vivamus sit amet nunc rhoncus, scelerisque velit sed, pretium diam. Donec vitae dui sit amet metus vestibulum placerat. Quisque commodo eros vitae nibh pellentesque vulputate. Fusce at venenatis est. Fusce in nisl non purus gravida suscipit vitae auctor nibh. Aenean egestas sodales lectus, at fringilla urna maximus nec. Vivamus quis urna a lectus sollicitudin euismod. Nam et dictum nunc, at porta tortor. Integer aliquam, nibh nec ornare aliquam, massa ex aliquam urna, eget pharetra erat libero ut turpis. | ||
|
||
Mail: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* Remark Plugins */ | ||
export {default as remarkMath} from 'remark-math'; | ||
export * from './remark-reading-time.mjs'; | ||
/* Rehype Plugins */ | ||
export {default as rehypeKatex} from 'rehype-katex'; | ||
export * from './rehype-figure.mjs'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import {h} from 'hastscript'; | ||
import {visit} from 'unist-util-visit'; | ||
|
||
/** | ||
* | ||
* @type {import('unified').Plugin<Array<void>, Root>} | ||
*/ | ||
export function rehypeFigure() { | ||
const buildFigureChildern = ({properties}) => [ | ||
h('img', {...properties}), | ||
properties.alt && properties.alt.trim().length > 0 ? h('figcaption', properties.alt) : '', | ||
]; | ||
|
||
return (tree, file) => { | ||
visit(tree, {tagName: 'img'}, (node, index, parent) => { | ||
if (parent.tagName === 'figure') { | ||
return; | ||
} | ||
|
||
const figureChildernEls = buildFigureChildern(node); | ||
|
||
node.tagName = 'figure'; | ||
node.properties = {}; | ||
node.children = figureChildernEls; | ||
}); | ||
}; | ||
} |
Oops, something went wrong.