Skip to content

Commit

Permalink
fix: bugs in previous release
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin-Alexa Robinson authored and tim-evans committed Mar 21, 2024
1 parent 0fee1a1 commit 1e59624
Showing 1 changed file with 6 additions and 3 deletions.
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 @@ import {
Italic,
Link,
List,
Paragraph,
Table,
} from "@atjson/offset-annotations";
import Renderer, { Context } from "@atjson/renderer-hir";
Expand Down Expand Up @@ -237,8 +238,7 @@ export default class CommonmarkRenderer extends Renderer {
*/
protected options: {
escapeHtmlEntities: boolean;
allowBlocks: boolean;
} = { escapeHtmlEntities: true, allowBlocks: true }
} = { escapeHtmlEntities: true }
) {
super(document);
this.state = {};
Expand Down Expand Up @@ -708,7 +708,10 @@ export default class CommonmarkRenderer extends Renderer {
/**
* 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

0 comments on commit 1e59624

Please sign in to comment.