This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
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 #62 from Halyul/dev
release: 1.5.0
- Loading branch information
Showing
14 changed files
with
1,126 additions
and
125 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
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 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,12 @@ | ||
const table = /<table>([\s\S]*?)<\/table>/igm; | ||
const mduiTableStart = '<div class="mdui-table-fluid"><table class="mdui-table mdui-table-hoverable ">' | ||
const mduiTableEnd = '</table></div>' | ||
|
||
function tableRenderer(data) { | ||
data.content = data.content.replace(table, (origin, content) => { | ||
return mduiTableStart + content + mduiTableEnd; | ||
}) | ||
return data; | ||
} | ||
|
||
hexo.extend.filter.register('after_post_render', tableRenderer); |
Oops, something went wrong.