-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Large Nuemark simplification/refactor, support for 'standard' footnotes
- Loading branch information
Showing
13 changed files
with
215 additions
and
187 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
|
||
import { parseDocument } from './src/parse-document.js' | ||
import { renderLines } from './src/render-blocks.js' | ||
import { parseDocument } from './src/document.js' | ||
|
||
const EOL = /\r\n|\r|\n/ | ||
|
||
export function nuemark(str, opts) { | ||
return renderLines(str.split(EOL), opts) | ||
export function nuedoc(str, opts) { | ||
return parseDocument(str.split(EOL), opts) | ||
} | ||
|
||
export function nuedoc(str) { | ||
return parseDocument(str.split(EOL)) | ||
export function nuemark(str, opts) { | ||
return renderLines(str.split(EOL), opts) | ||
} | ||
|
||
/* utilities */ | ||
export { renderInline } from './src/render-inline.js' | ||
export { parseSize } from './src/render-tag.js' | ||
export { elem } from './src/document.js' | ||
export { elem } from './src/render-blocks.js' |
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
Oops, something went wrong.