Skip to main content

Wiki template

MarkdownTítulo Wiki TemplatePrincipal

ThisEn isesta wiki se documenta el procesamiento de imágenes con un enfoque en el código. Se incluyen explicaciones detalladas, fragmentos de código y enlaces a templaterecursos toexternos. beAquí clonedse todará quicklyuna setbreve upintroducción al tema.

Esta sección proporciona enlaces a repositoryrecursos forclave keepingrelacionados documentationcon inel Markdown.

Specifically, it arranges how image files are handled.

Additionally, it provides some handy settings for VS Code users.

You may remove .markdown-wiki-template directory if you don't need this documentation.

Table of content:tema:

  • Link

    Prerequisites

    a
      diapositivas:
    • OS:[Enlace GNUa Linux / Mac (though it's not tested for Mac yet - it should work there)presentaciones]
    • gitLink availablea onpaper: $PATH[Enlace a artículos académicos]
    • Link a código externo: [Repositorio de código relacionado]

    Get startedExplicación

    DownloadAcá thisse repositorypuede toexplicar yourtodos locallos machine:temas. Es posible agregar bloques de código de la siguiente manera:

    gitimport clonecv2
    https://github.com/vsudakov/markdown-wiki-template.gitimport 

    Images

    .images directory

    Keep all images in .images directory of the project root. This allows moving markdown documents across any subdirectories without the need to update links to images.

    Regardless of where the markdown page is placed within the repository, all image links are related to the project rootmatplotlib.pyplot as below:

    plt
    ![img](/imagen = cv2.imread(".images/sample-image.png)ejemplo.png")
    plt.imshow(cv2.cvtColor(imagen, cv2.COLOR_BGR2RGB))
    plt.show()
    

    img

    También

    pre-commites hook

    posible

    pre-commitadjuntar hookimágenes. automaticallyPor detectsel themomento, imagesolo filesutilizar thatimágenes aredisponibles noten referencedinternet, anywhereya withinque theel repositoryalmacenamiento anymorees and removes them.limitado

    To enable this pre-commit hook - run the following command within the project root directory:Este es el alt de la imagen, que se muestra si la imagen no carga

    chmod

    Esas 755son .images/untrack-unused-images.sh;solo \imágenes lnde --symbolictamaño ../../.images/untrack-unused-images.shcompleto

    .git/hooks/pre-commit

    Así

    también

    markdownlint

    puedo poner la imagen

    drawing drawing

    Referencias

    Esta sección recopila enlaces a recursos, documentación y artículos relevantes para el procesamiento de imágenes:

    VS Code

    For VS Code plenty of settings and extensions are available to simplify work with Markdown. The below is the list of the selected settings/extensions.

    EXTENSIONS ARE NOT INSTALLED AUTOMATICALLY - each extension needs to be installed individually. But the configuration for each extension is applied automatically.

    Proposed VS Code workspace settings are located in /.vscode/settings.json. These settings include both vs-code-internal and extenstion-specific settings.

    You may remove /.vscode/ directory if you don't use VS Code.

    VS Code internal settings

    "Paste Image" extenstion

    home page: https://marketplace.visualstudio.com/items?itemName=mushan.vscode-paste-image

    installation from command palette (Ctrl + P): ext install mushan.vscode-paste-image

    allows pasting images from the clipboard directly into Markdown document by pressing Ctrl + Alt + V (by default).

    Every image is automatically saved in /.images/ directory using an automatically-generated name and the project-root-related-link to that is pasted in the current markdown document.

    Preferences for this extension: /.vscode/settings.json#L17-L31

    "Markdown All in One" extension

    home page: https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one

    installation from command palette (Ctrl + P): ext install yzhang.markdown-all-in-one

    among those numerous features what this extension provides - there is one extra useful to generate/update a table of content.

    Preferences for this extension: /.vscode/settings.json#L35-L40

    "markdownlint" extension

    home page: https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint

    installation from command palette (Ctrl + P): ext install DavidAnson.vscode-markdownlint

    aforementioned markdownlint style checker is available as a plugin for VS Code.