-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4816883
commit cae3ee2
Showing
10 changed files
with
84 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import * as React from "react"; | ||
import { Command } from "../command"; | ||
import { setHeader } from "../../helpers/headerHelpers"; | ||
|
||
export const headingLevel1Command: Command = { | ||
execute: ({ initialState, textApi }) => { | ||
setHeader(initialState, textApi, "# "); | ||
} | ||
}; |
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,9 @@ | ||
import * as React from "react"; | ||
import { Command } from "../command"; | ||
import { setHeader } from "../../helpers/headerHelpers"; | ||
|
||
export const headingLevel2Command: Command = { | ||
execute: ({ initialState, textApi }) => { | ||
setHeader(initialState, textApi, "## "); | ||
} | ||
}; |
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,9 @@ | ||
import * as React from "react"; | ||
import { Command } from "../command"; | ||
import { setHeader } from "../../helpers/headerHelpers"; | ||
|
||
export const headingLevel3Command: Command = { | ||
execute: ({ initialState, textApi }) => { | ||
setHeader(initialState, textApi, "### "); | ||
} | ||
}; |
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,9 @@ | ||
import * as React from "react"; | ||
import { Command } from "../command"; | ||
import { setHeader } from "../../helpers/headerHelpers"; | ||
|
||
export const headingLevel4Command: Command = { | ||
execute: ({ initialState, textApi }) => { | ||
setHeader(initialState, textApi, "#### "); | ||
} | ||
}; |
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,9 @@ | ||
import * as React from "react"; | ||
import { Command } from "../command"; | ||
import { setHeader } from "../../helpers/headerHelpers"; | ||
|
||
export const headingLevel5Command: Command = { | ||
execute: ({ initialState, textApi }) => { | ||
setHeader(initialState, textApi, "##### "); | ||
} | ||
}; |
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,9 @@ | ||
import * as React from "react"; | ||
import { Command } from "../command"; | ||
import { setHeader } from "../../helpers/headerHelpers"; | ||
|
||
export const headingLevel6Command: Command = { | ||
execute: ({ initialState, textApi }) => { | ||
setHeader(initialState, textApi, "###### "); | ||
} | ||
}; |
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