Now code blocks which are sucessors of '%invisible' ancestors are not exported in the markdown output.
This commit is contained in:
parent
6bf0ec7e00
commit
d21629cb31
@ -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
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user