Initial commit
This commit is contained in:
commit
388079e6bb
1108 changed files with 330121 additions and 0 deletions
14
assets/js/plugins/ragadjust-hook.js
Executable file
14
assets/js/plugins/ragadjust-hook.js
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
class ragadjustHandler extends Paged.Handler {
|
||||
constructor(chunker, polisher, caller) {
|
||||
super(chunker, polisher, caller);
|
||||
}
|
||||
beforeParsed(content) {
|
||||
|
||||
// Adjusts the headers by adding a non-breaking space after
|
||||
// all the prepositions listed, and without any whitelisted
|
||||
// word.
|
||||
ragadjust('p,h1,h2,h3,h4,h5,h6,li', ['determiners', 'pronouns', 'dashes'], [], content);
|
||||
}
|
||||
}
|
||||
|
||||
Paged.registerHandlers(ragadjustHandler);
|
||||
Loading…
Add table
Add a link
Reference in a new issue