Skip to content

Commit 35a23d8

Browse files
ninjamuffin99Kade-github
authored andcommitted
Std.instance() -> Std.downcast() (fixes deprecation warning?)
1 parent 710679b commit 35a23d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ class Generator {
556556
var hasTitle = false;
557557
var count = 0;
558558
for (block in blocks) {
559-
var el = Std.instance(block, ElementNode);
559+
var el = Std.downcast(block, ElementNode);
560560
if (el != null) {
561561
if (!hasTitle && el.tag == "h1" && !el.isEmpty()) {
562562
page.title = new markdown.HtmlRenderer().render(el.children);

0 commit comments

Comments
 (0)