Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve type definition about Theme.meta and Marpit's internal variables #58

Merged
merged 2 commits into from
Aug 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## [Unreleased]

- Improve type definition about slide containers ([#56](https://github.com/marp-team/marpit/pull/56))
- Improve type definition about slide containers, theme metas, and internal variables ([#56](https://github.com/marp-team/marpit/pull/56), [#58](https://github.com/marp-team/marpit/pull/58))
- Support CSS scoping by element id ([#57](https://github.com/marp-team/marpit/pull/57))

## v0.0.12 - 2018-08-18
Expand Down
8 changes: 7 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ declare module '@marp-team/marpit' {
readonly options: MarpitOptions
readonly markdownItPlugins: (md: any) => void

protected lastGlobalDirectives?: { [directive: string]: any }
protected lastStyles?: string[]

render(markdown: string): MarpitRenderResult

protected applyMarkdownItPlugins(md: any): void
Expand All @@ -62,7 +65,10 @@ declare module '@marp-team/marpit' {
node: any
value: string
}[]
meta: {}
meta: {
theme: string
[key: string]: string
}
name: string
width: string

Expand Down