-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #626 from kasperosterbye/InlineRewrite
MERGE ME - Inline rewrite all green
- Loading branch information
Showing
87 changed files
with
2,323 additions
and
3,614 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Extension { #name : #MicFigureBlock } | ||
|
||
{ #category : #'*Microdown-HTMLExporter' } | ||
MicFigureBlock >> altText [ | ||
^ (self children collect: #plainText) joinUsing: ' ' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/Microdown-HTMLExporter/MicInlineBlockWithUrl.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Extension { #name : #MicInlineBlockWithUrl } | ||
|
||
{ #category : #'*Microdown-HTMLExporter' } | ||
MicInlineBlockWithUrl >> argumentAt: aKey ifPresent: aBlock [ | ||
"Lookup the given key in the receiver. If it is present, answer the value of evaluating the given block with the value associated with the key. Otherwise, answer self." | ||
|
||
self arguments | ||
at: aKey | ||
ifPresent: aBlock | ||
] | ||
|
||
{ #category : #'*Microdown-HTMLExporter' } | ||
MicInlineBlockWithUrl >> argumentAt: aKey put: value [ | ||
"Lookup the given key in the receiver. If it is present, answer the value of evaluating the given block with the value associated with the key. Otherwise, answer self." | ||
|
||
self arguments | ||
at: aKey | ||
put: value | ||
] | ||
|
||
{ #category : #'*Microdown-HTMLExporter' } | ||
MicInlineBlockWithUrl >> hasChildren [ | ||
^ self children notEmpty | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/Microdown-LaTeXExporter/MicInlineBlockWithUrl.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Extension { #name : #MicInlineBlockWithUrl } | ||
|
||
{ #category : #'*Microdown-LaTeXExporter' } | ||
MicInlineBlockWithUrl >> fileStringWithoutHostFile [ | ||
| urlString localFileIndicator | | ||
urlString := url asString. | ||
localFileIndicator := 'file://'. | ||
^ (urlString beginsWith: localFileIndicator) | ||
ifTrue: [ urlString allButFirst: localFileIndicator size ] | ||
ifFalse: [ urlString ] | ||
] | ||
|
||
{ #category : #'*Microdown-LaTeXExporter' } | ||
MicInlineBlockWithUrl >> fullName [ | ||
|
||
^ reference fullName | ||
] | ||
|
||
{ #category : #'*Microdown-LaTeXExporter' } | ||
MicInlineBlockWithUrl >> hasCaption [ | ||
|
||
^ children notEmpty | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.