Skip to content

Commit

Permalink
Merge pull request #15 from Automattic/convert-output-to-tree
Browse files Browse the repository at this point in the history
The final output should resemeble something like a VDOM structure.

These changes recursively strip away the information from the parse and
turn it into an easier output tree of [ type, attrs, children ] where
type is a pair of [ major type, minor type ] and major type could
be block or tag (for an HTML tag).

This is just one path towards forming a language with which to
communicate with plugins. The idea is that this format is trivial to
abstract with functions.
  • Loading branch information
dmsnell authored Apr 19, 2017
2 parents 94a6f2a + 25139ff commit 44bf68e
Show file tree
Hide file tree
Showing 2 changed files with 223 additions and 173 deletions.
Loading

0 comments on commit 44bf68e

Please sign in to comment.