Minor sync, before adding preliminar Pandoc

exportation support.
This commit is contained in:
Offray Vladimir Luna Cárdenas 2017-02-19 21:56:43 +00:00
parent ad07fbe0b9
commit 491b7d4de9
1 changed files with 3 additions and 4 deletions

View File

@ -352,9 +352,8 @@ GrafoscopioNode >> embedAll [
GrafoscopioNode >> embedNodes [
"I find any ocurrence of '%embed a node header' in the body of a node and replace it
by the children which have such header.
Using embedded node is useful to change the order in which children appear into parents body,
Using embedded nodes is useful to change the order in which children appear into parents body,
while exporting"
| temporalBody |
temporalBody := self body.
self embeddedNodes ifNotNil: [ self embeddedNodes do: [ :each |
@ -611,9 +610,9 @@ GrafoscopioNode >> markdownContent [
(self hasAncestorHeaderWith: '%invisible') not
ifTrue: [
self headerAsMarkdownInto: markdownStream.
self bodyAsMarkdownInto: markdownStream].
self bodyAsMarkdownInto: markdownStream ].
(self headerStartsWith: '%idea')
ifTrue: [self bodyAsMarkdownInto: markdownStream].
ifTrue: [ self bodyAsMarkdownInto: markdownStream ].
(self headerStartsWith: '%footnote')
ifTrue: [ self footnoteAsMarkdownInto: markdownStream ].
((self tags = 'código') and: [(self hasAncestorHeaderWith: '%invisible') not & (self headerStartsWith: '%embed') not ])