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

fix: bugs in previous release #1731

Merged
merged 1 commit into from
Mar 21, 2024
Merged
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
9 changes: 6 additions & 3 deletions packages/@atjson/renderer-commonmark/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Italic,
Link,
List,
Paragraph,
Table,
} from "@atjson/offset-annotations";
import Renderer, { Context } from "@atjson/renderer-hir";
Expand Down Expand Up @@ -237,8 +238,7 @@
*/
protected options: {
escapeHtmlEntities: boolean;
allowBlocks: boolean;
} = { escapeHtmlEntities: true, allowBlocks: true }
} = { escapeHtmlEntities: true }
) {
super(document);
this.state = {};
Expand Down Expand Up @@ -708,7 +708,10 @@
/**
* Paragraphs are delimited by two or more newlines in markdown.
*/
*Paragraph(): Generator<void, string, string[]> {
*Paragraph(
_paragraph: Block<Paragraph>,

Check warning on line 712 in packages/@atjson/renderer-commonmark/src/index.ts

View workflow job for this annotation

GitHub Actions / build

'_paragraph' is defined but never used
_context: Context

Check warning on line 713 in packages/@atjson/renderer-commonmark/src/index.ts

View workflow job for this annotation

GitHub Actions / build

'_context' is defined but never used
): Generator<void, string, string[]> {
if (this.state.inlineOnly) {
return "";
}
Expand Down
Loading