From fd2530897dd0e135d9faafe7827f750e86e53006 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Wed, 20 Nov 2024 17:41:26 -0700 Subject: [PATCH] add a meta tag to set viewport options for mobile devices --- src/Spec.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/Spec.ts b/src/Spec.ts index bb072e49..b05a3685 100644 --- a/src/Spec.ts +++ b/src/Spec.ts @@ -571,7 +571,8 @@ export default class Spec { this.buildReferenceGraph(); this.highlightCode(); - this.setCharset(); + this.setMetaCharset(); + this.setMetaViewport(); const wrapper = this.buildSpecWrapper(); let commonEles: HTMLElement[] = []; @@ -1875,7 +1876,7 @@ ${this.opts.multipage ? `
  • Navigate to/from multipagemNavigate to/from multipagem 0) {