Support basic #+INCLUDE (src/example/export block only)
including org files is more complex - e.g. footnotes need to be namespaced to their source file. org does this by prefixing each included files footnotes with a number - but even that is not enough as it doesn't guarantee uniqueness. As I don't have a usecase for it, I'll avoid the additional complexity for now.
This commit is contained in:
parent
04df30a7b5
commit
2947d7632d
13 changed files with 150 additions and 26 deletions
|
@ -14,7 +14,7 @@ func TestOrgWriter(t *testing.T) {
|
|||
for _, path := range orgTestFiles() {
|
||||
expected := fileString(path)
|
||||
reader, writer := strings.NewReader(expected), NewOrgWriter()
|
||||
actual, err := NewDocument().Parse(reader).Write(writer)
|
||||
actual, err := NewDocument().SetPath(path).Parse(reader).Write(writer)
|
||||
if err != nil {
|
||||
t.Errorf("%s\n got error: %s", path, err)
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue