Skip to content

Commit

Permalink
feat: Add option to force POSIX path for link to original HTML file
Browse files Browse the repository at this point in the history
* Add option to force POSIX path for link to original HTML fiile (#610)

Co-authored-by: Akos Balasko <akos0215@gmail.com>

* multiple imports resolved

---------

Co-authored-by: Ash <6572225+mezzode@users.noreply.github.com>
  • Loading branch information
akosbalasko and mezzode authored Apr 11, 2024
1 parent e239044 commit 28a225b
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 54 deletions.
58 changes: 19 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/YarleOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface YarleOptions {
currentTemplate?: string;
outputDir?: string;
keepOriginalHtml?: boolean;
posixHtmlPath?: boolean;
isMetadataNeeded?: boolean;
isNotebookNameNeeded?: boolean;
isZettelkastenNeeded?: boolean;
Expand Down
16 changes: 15 additions & 1 deletion src/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,21 @@ <h5 class="info-text">General </h5>
<option value="true">Yes</option>
<option value="false" selected>No</option>
</select>
</div>
</div>

<div class="form-group">
<label for="posixHtmlPath" class="pure-checkbox">
POSIX HTML Path
<br>
<div style='font-size: 12px;'>
<i>(Use forward slashes in path to original HTML, even on Windows)</i>
</div>
</label>
<select class="form-control configurationItem" name="posixHtmlPath" id="posixHtmlPath">
<option value="true">Yes</option>
<option value="false" selected>No</option>
</select>
</div>

<div class="form-group">
<!--<input type="checkbox" value="false" id='skipWebClips'> -->
Expand Down
4 changes: 3 additions & 1 deletion src/ui/settingsMapper.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { ImageSizeFormat } from 'image-size-format';
import { CharacterMap } from './../CharacterMap';
import { YarleOptions } from './../YarleOptions';
const store = require ('./store');
import { OutputFormat } from './../output-format';
import { TaskOutputFormat } from './../task-output-format';
import { SearchAndReplace } from 'models';

const store = require ('./store');
enum DefaultRootType {
array = 'array',
object = 'object'
Expand Down Expand Up @@ -39,6 +40,7 @@ export const mapSettingsToYarleOptions = (): YarleOptions => {
keepMDCharactersOfENNotes: store.get('keepMDCharactersOfENNotes') as boolean,
monospaceIsCodeBlock: store.get('monospaceIsCodeBlock') as boolean,
keepOriginalHtml: store.get('keepOriginalHtml') as boolean,
posixHtmlPath: store.get('posixHtmlPath') as boolean,
currentTemplate: store.get('currentTemplate') as string,
resourcesDir: store.get('resourcesDir') as string,
trimStartingTabs: store.get('trimStartingTabs') as boolean,
Expand Down
Loading

0 comments on commit 28a225b

Please sign in to comment.