diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-06-08 02:22:19 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-08 02:22:19 -0600 |
| commit | 618c5880fa0386e2fdabd3f10ea48ef2db03c311 (patch) | |
| tree | 2c41a26e8e61950a7a792559cf5b21df7147e7b7 /lib | |
| parent | 8265abc461a8576faad9413cc8395f40c833e34c (diff) | |
resolves #4297 propagate :to_dir option to document of AsciiDoc table cell (PR #4298)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/document.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/asciidoctor/document.rb b/lib/asciidoctor/document.rb index bc6920f0..af5fb51d 100644 --- a/lib/asciidoctor/document.rb +++ b/lib/asciidoctor/document.rb @@ -259,6 +259,7 @@ class Document < AbstractBlock @parent_document = parent_doc options[:base_dir] ||= parent_doc.base_dir options[:catalog_assets] = true if parent_doc.options[:catalog_assets] + options[:to_dir] = parent_doc.options[:to_dir] if parent_doc.options[:to_dir] @catalog = parent_doc.catalog.merge footnotes: [] # QUESTION should we support setting attribute in parent document from nested document? @attribute_overrides = attr_overrides = (parent_doc.instance_variable_get :@attribute_overrides).merge parent_doc.attributes |
