Skip to content

Commit

Permalink
Removed styling information (#10782)
Browse files Browse the repository at this point in the history
* Removed styling information

Removes styling output see #10734

* Removed css
  • Loading branch information
Daniel Gregory authored and youknowriad committed Oct 27, 2018
1 parent 9d33098 commit 85d58bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions bin/generate-public-grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,5 @@ fs.writeFileSync(
path.join( __dirname, '..', 'docs', 'grammar.md' ), `
# The Gutenberg block grammar
<style>
dl { display: flex; flex-wrap: wrap; font-size: 110%; }
dt, dd { flex: 40%; margin-bottom: 1em; }
dt { text-align: right; font-style: italic; font-size: 105%; }
dd header { font-weight: bold; }
pre { margin: 0; }
</style>
${ flatten( grammar ) }
` );
7 changes: 0 additions & 7 deletions docs/grammar.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@

# The Gutenberg block grammar

<style>
dl { display: flex; flex-wrap: wrap; font-size: 110%; }
dt, dd { flex: 40%; margin-bottom: 1em; }
dt { text-align: right; font-style: italic; font-size: 105%; }
dd header { font-weight: bold; }
pre { margin: 0; }
</style>
<dl><dt></dt><dd><pre><header>Block_List</header> = $(!Block .)* (Block $(!Block .)*)* $(.*)</pre></dd><dt></dt><dd><pre><header>Block</header> = Block_Void
/ Block_Balanced</pre></dd><dt></dt><dd><pre><header>Block_Void</header> = "&lt;!--" __ "wp:" Block_Name __ (Block_Attributes __)? "/-->"</pre></dd><dt></dt><dd><pre><header>Block_Balanced</header> = Block_Start (Block / $(!Block_End .))* Block_End</pre></dd><dt></dt><dd><pre><header>Block_Start</header> = "&lt;!--" __ "wp:" Block_Name __ (Block_Attributes __)? "-->"</pre></dd><dt></dt><dd><pre><header>Block_End</header> = "&lt;!--" __ "/wp:" Block_Name __ "-->"</pre></dd><dt></dt><dd><pre><header>Block_Name</header> = Namespaced_Block_Name
/ Core_Block_Name</pre></dd><dt></dt><dd><pre><header>Namespaced_Block_Name</header> = $(Block_Name_Part "/" Block_Name_Part)</pre></dd><dt></dt><dd><pre><header>Core_Block_Name</header> = $(Block_Name_Part)</pre></dd><dt></dt><dd><pre><header>Block_Name_Part</header> = $([a-z] [a-z0-9_-]*)</pre></dd><dt>JSON-encoded attributes embedded in a block's opening comment</dt><dd><pre><header>Block_Attributes</header> = $("{" (!("}" __ "" "/"? "-->") .)* "}")</pre></dd><dt></dt><dd><pre><header>__</header> = [ \t\r\n]+</pre></dd></dl>

0 comments on commit 85d58bb

Please sign in to comment.