-
Notifications
You must be signed in to change notification settings - Fork 13
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 #1363 from LLazyEmail/1361-combine-configurereplac…
…er-with-replace-class 1361 combine configurereplacer with replace class
- Loading branch information
Showing
4 changed files
with
48 additions
and
136 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,5 @@ | ||
import { | ||
replaceMarkdown, | ||
// replaceMarkdownPreviewText, | ||
} from '../replace-markdown/replace-md'; | ||
import Replacer from '../replace/replace-class'; | ||
|
||
// TODO I propose to move inner things of this method into Replace -> runConfigure() | ||
function configureReplacer(state) { | ||
// CAN WE MOVE OUT CALLBACKS INTO REPLACER????? | ||
Replacer.replaceMDBinded = replaceMarkdown.bind(state); | ||
|
||
// TODO crashed when here in FULL mode, needs to be fixed | ||
Replacer.previewText(); | ||
|
||
// Replacer.comments(); | ||
// --- | ||
Replacer.typography(); | ||
|
||
Replacer.template(); | ||
|
||
Replacer.miscellaneous(); | ||
} | ||
const configureReplacer = (state) => Replacer.configure(state); | ||
|
||
export default configureReplacer; |
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