Skip to content

Commit

Permalink
Bump prettier to 3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
runarberg committed Nov 3, 2023
1 parent 5bb742f commit 1578fcc
Show file tree
Hide file tree
Showing 8 changed files with 520 additions and 44 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,24 @@ jobs:
- name: Lint
run: npm run lint

prettier:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: npm

- name: Install
run: npm ci

- name: Lint
run: npm run prettier:ci

check:
runs-on: ubuntu-latest

Expand Down
5 changes: 5 additions & 0 deletions .ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git/
package-lock.json
coverage/
node_modules/
dist/
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>

<html>
<head>
Expand Down
2 changes: 1 addition & 1 deletion demo/playground.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>

<html>
<head>
Expand Down
2 changes: 1 addition & 1 deletion demo/test-cases.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>

<html>
<head>
Expand Down
37 changes: 20 additions & 17 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>

<html>
<head>
Expand Down Expand Up @@ -1971,22 +1971,23 @@ <h3>Accents</h3>
<h3>Font commands</h3>

<p>
You can prefix any expression with a font command. Then
all token elements in that expression will have the
following variant. Some variants can be combined, order
doesn’t matter.
You can prefix any expression with a font command. Then all token
elements in that expression will have the following variant. Some
variants can be combined, order doesn’t matter.
</p>

<p>
Bold (<code>bf</code>), italic (<code>it</code>),
sans-serif (<code>sf</code>), and monospace
(<code>tt</code>) on texts (<code>bf tt "text"</code>) are
set using CSS. If you want to control the font-family of
sans-serif and monospace texts, you can set
the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties">CSS
custom
properties</a> <code>--mathup-font-family-sans-serif</code>
and <code>--mathup-font-family-monospace</code>
Bold (<code>bf</code>), italic (<code>it</code>), sans-serif
(<code>sf</code>), and monospace (<code>tt</code>) on texts (<code
>bf tt "text"</code
>) are set using CSS. If you want to control the font-family of
sans-serif and monospace texts, you can set the
<a
href="https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties"
>CSS custom properties</a
>
<code>--mathup-font-family-sans-serif</code> and
<code>--mathup-font-family-monospace</code>
respectively.
</p>

Expand All @@ -2004,21 +2005,23 @@ <h3>Font commands</h3>
<dt><code>bf</code></dt>
<dd>
<math>
<mtext style="font-weight:bold;">bold</mtext>
<mtext style="font-weight: bold">bold</mtext>
</math>
</dd>

<dt><code>it</code></dt>
<dd>
<math>
<mtext style="font-style:italic;">italic</mtext>
<mtext style="font-style: italic">italic</mtext>
</math>
</dd>

<dt><code>bf it</code></dt>
<dd>
<math>
<mtext style="font-weight:bold;font-style:italic;">bold italic</mtext>
<mtext style="font-weight: bold; font-style: italic"
>bold italic</mtext
>
</math>
</dd>

Expand Down
Loading

0 comments on commit 1578fcc

Please sign in to comment.