README.md in draftjs_html-0.22.0 vs README.md in draftjs_html-0.23.0
- old
+ new
@@ -227,9 +227,18 @@
- when true, creates a new "atomic" block for this entity rather than apply
the entity to the current range
- `data` (optional, default `{}`)
- an arbitrary data-bag (Hash) of entity data
+#### `:is_semantic_markup:`
+
+Defaults to `true`.
+
+By setting to `false`, the user is stating they want to treat `div` tags as semantic,
+block-level tags. In some markup (emails, for example), there are no semantic tags
+(read, no `p` tags), so the only indications of whitespace and structure come from
+`div` tags. This flag will flush content wrapped in a `div` as a DraftJS block.
+
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run
`rake spec` to run the tests. You can also run `bin/console` for an interactive
prompt that will allow you to experiment.