Now code blocks which are sucessors of '%invisible' ancestors are not exported in the markdown output.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2017-02-03 17:36:14 +00:00
parent 6bf0ec7e00
commit d21629cb31

View File

@ -560,11 +560,11 @@ GrafoscopioNode >> markdownContent [
markdown nextPutAll: (self body contents withInternetLineEndings); lf; lf. ].
((self header findString: '%embed') = 1)
ifTrue: [ ].
(self tags = 'invisible')
((self header findString: '%invisible') = 1)
ifTrue: [
invisibleChildren := self children.
invisibleChildren ifNotNil: [ ] ].
(self tags = 'código') ifTrue: [ self exportCodeBlockTo: markdown ].
((self tags = 'código') and: [ (self hasAncestorHeaderWith: '%invisible') not ]) ifTrue: [ self exportCodeBlockTo: markdown ].
^markdown contents
]