diff options
Diffstat (limited to 'docs/content/guide/dev_guide.compiler.markup.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.compiler.markup.ngdoc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/docs/content/guide/dev_guide.compiler.markup.ngdoc b/docs/content/guide/dev_guide.compiler.markup.ngdoc index a6f43586..b33d3260 100644 --- a/docs/content/guide/dev_guide.compiler.markup.ngdoc +++ b/docs/content/guide/dev_guide.compiler.markup.ngdoc @@ -57,12 +57,9 @@ angular.markup('---', function(text, textNode, parentElement) { var compiler = this; var index = text.indexOf('---'); if (index > -1) { - var before = compiler.text(text.substring(0, index)); - var hr = compiler.element('hr'); - var after = compiler.text(text.substring(index + 3)); - textNode.after(after); - textNode.after(hr); - textNode.after(before); + textNode.after(text.substring(index + 3)); + textNode.after(angular.element('<hr>')); + textNode.after(text.substring(0, index)); textNode.remove(); } }); |
