diff options
-rw-r--r-- | packages/gitbook-core/src/components/HTMLContent.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/gitbook-core/src/components/HTMLContent.js b/packages/gitbook-core/src/components/HTMLContent.js index 720e50a..75da884 100644 --- a/packages/gitbook-core/src/components/HTMLContent.js +++ b/packages/gitbook-core/src/components/HTMLContent.js @@ -5,6 +5,16 @@ const entities = require('entities'); const { InjectedComponent } = require('./InjectedComponent'); +const DOMProperty = require('react/lib/ReactInjection').DOMProperty; +DOMProperty.injectDOMPropertyConfig({ + Properties: { + align: DOMProperty.MUST_USE_ATTRIBUTE + }, + isCustomAttribute: (attributeName) => { + return attributeName === 'align'; + } +}); + /* HTMLContent is a container for the page HTML that parse the content and render the right block. |