Skip to content

Commit b562f50

Browse files
committed
Get tailwind to read classes in markdown files
1 parent 85a9541 commit b562f50

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

assets/tailwind.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ module.exports = {
88
'./js/**/*.js',
99
'../lib/components_guide_web.ex',
1010
'../lib/components_guide_web/**/*.ex',
11-
'../lib/components_guide_web/**/*.*ex'
11+
'../lib/components_guide_web/**/*.*ex',
12+
'../lib/components_guide_web/templates/**/*.md'
1213
],
1314
plugins: [
1415
require('@tailwindcss/forms'),

lib/components_guide_web/templates/accessibility_first/content.html.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,19 +238,19 @@ screen.getByRole('separator');
238238
<tbody>
239239
<%= table_rows([
240240
["**link**", "`<a href=…>`"],
241-
["_none!_", "`<a>`"],
241+
["_none_", "`<a>`"],
242242
["**heading**", "`<h1>`, `<h2>`, `<h3>`, etc"],
243243
["**list**", "`<ul>`, `<ol>`"],
244244
["**listitem**", "`<li>`"],
245245
["**term**", "`<dt>`"],
246246
["**definition**", "`<dd>`"],
247247
["**img**", "`<img alt=\"Some description\">`"],
248-
["_none!_", "`<img alt=\"\">`"],
248+
["_none_", "`<img alt=\"\">`"],
249249
["**figure**", "`<figure>`"],
250250
["**separator**", "`<hr>`, `<li role=separator>`"],
251-
["_none!_", "`<p>`"],
252-
["_none!_", "`<div>`"],
253-
["_none!_", "`<span>`"],
251+
["_none_", "`<p>`"],
252+
["_none_", "`<div>`"],
253+
["_none_", "`<span>`"],
254254
["**group**", "`<details>`"],
255255
["**button**", "`<summary>`"],
256256
]) %>

0 commit comments

Comments
 (0)