Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
fix(tocIntroductory): remove tocIntroductory warning (speced#3815)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored Oct 13, 2021
1 parent 13905d4 commit 1bd0786
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/core/structure.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@

import {
addId,
docLink,
getIntlData,
parents,
renameElement,
showError,
showWarning,
} from "./utils.js";
import { html } from "./import-maps.js";
import { pub } from "./pubsubhub.js";
Expand Down Expand Up @@ -192,12 +190,6 @@ function filterHeader(h) {
}

export function run(conf) {
if ("tocIntroductory" in conf && conf.tocIntroductory === false) {
const msg = "Configuration option `tocIntroductory` is deprecated.";
const hint = docLink`Use the ${"[`notoc`|#notoc-class]"} CSS class to remove a section from the Table of Contents.`;
showWarning(msg, name, { hint });
}

if ("maxTocLevel" in conf === false) {
conf.maxTocLevel = Infinity;
}
Expand Down

0 comments on commit 1bd0786

Please sign in to comment.