| | |
| | import java.nio.file.Path; |
| | -import java.util.ArrayList; |
| | import java.util.Collection; |
| | +import java.util.HashSet; |
| | |
| | import static com.keenwrite.Constants.USER_DIRECTORY; |
 |
| | final Processor<String> successor, final ProcessorContext context ) { |
| | final var extensions = createExtensions( context ); |
| | - |
| | - // Allows referencing image files via relative paths and dynamic file types. |
| | - extensions.add( ImageLinkExtension.create( context.getPath() ) ); |
| | - extensions.add( BlockExtension.create() ); |
| | - extensions.add( TeXExtension.create( context.getExportFormat() ) ); |
| | - |
| | return new MarkdownProcessor( successor, extensions ); |
| | } |
 |
| | */ |
| | private static Collection<Extension> createDefaultExtensions() { |
| | - final var extensions = new ArrayList<Extension>(); |
| | + final var extensions = new HashSet<Extension>(); |
| | extensions.add( DefinitionExtension.create() ); |
| | extensions.add( StrikethroughSubscriptExtension.create() ); |