Transclude Problem -- trivial work around

John Bernstein's Avatar

John Bernstein

26 Feb, 2018 02:44 AM

// Please enter a detailed description of the issue // Description of the issue:

Transclude files not rendered when a missing transclude file is subsequently added.

// Please enter a list of steps required to reproduce the issue // Steps to reproduce:

  1. I created a top level .md which referenced three {{transclude.md}} files which didn’t yet exist
  2. I opened the top level .md in Marked2, and it happily rendered the raw text showing {{transclude.md}} — because the files don’t exist yet.
  3. I created the file transclude.md with some text in it.
  4. When I returned to Marked2, it didn’t update and include the contents of transclude.md. I had to close and re-open the top level file in Marked2 to make it render the newly added transclude.md file.

// If applicable please attach a sample document that causes the issue for you.

// Configuration (do not edit) Marked 2 930 (Mac App Store)

OS X Version: 10.13.3

additionalMathJaxConfig:
allowPageBreakInCode: 1
bookTxtIsLeanpub: 0
summaryMdIsGitBook: 0
codeIsPoetry: 0
collapsibleHeadlines: 0
convertGithubCheckboxes: 1
convertYAMLToMMD: 0
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 0
defaultProcessor: MultiMarkdown
enableMiniMap: 0
excludeBlockQuotesFromCounts: 0
excludeFootnotesFromCounts: 0
excludeVerbatimFromCounts: 0
excludeCaptionsFromCounts: 0
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: 1
h1IsPageBreak: 0
h2IsPageBreak: 0
hrIsPageBreak: 0
includeMathJax: 0
limitTextWidth: 0
minimalJavaScript: 0
outlineModeExtensions:
permissionGranted: 0
printHeaderBottomLeft:
printHeaderBottomRight:
printHeaderFooterFirstPage: 0
printHeaderTopLeft:
printHeaderTopRight:
processHTMLFiles: 1
removeMetadataForPreview: 0
removeYAMLHeaders: 0
scrollToEdit: 1
shouldDetectCritic: 1
shouldHighlightMarkupErrors: 0
shouldLoadCritic: 0
syntaxHighlight: 1

  1. Support Staff 1 Posted by Brett on 26 Feb, 2018 01:59 PM

    Brett's Avatar

    Marked can only watch for changes on files that exist. If there's no
    file to watch, Marked can't add a filesystem watcher for it, thus it's
    not aware when the new file shows up. Once the file exists, a simple
    reload (⌘R) should make it appear, and from that point changes in the
    included file should trigger a preview update. Let me know if that
    helps.

    -Brett

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac