Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown Edge Cases #96

Open
szweibel opened this issue Nov 21, 2023 · 2 comments
Open

Markdown Edge Cases #96

szweibel opened this issue Nov 21, 2023 · 2 comments

Comments

@szweibel
Copy link
Contributor

szweibel commented Nov 21, 2023

Sometimes Markdown isn't rendered correctly, for instance:
<Secret/>
Definition:
Function: A function is a self-contained block of code that performs a specific task and can be defined independently of any class or object. It takes input arguments, processes them, and returns a result.
Method: A method is a function that is associated with an object or class. It is called on an object and can access the data within that object.

Usage:
Function: Functions are standalone entities and can be called from anywhere in the code, provided they are in the scope.
Method: Methods are associated with objects or classes and are called on instances of those objects or the class itself.

Syntax:
Function: Functions are defined using the def keyword and can be called using the function name.
Method: Methods also use the def keyword but are defined within a class and are accessed using dot notation (object.method() or class.method()).

Here's a simple example in Python to illustrate the differences:

    # function
    def add(a, b):
        return a + b

    # method
    class Math:
        def add(self, a, b):
            return a + b

    # function call
    add(1, 2)

    # method call
    Math().add(1, 2)

</Secret>

@szweibel
Copy link
Contributor Author

We are looking into adopting Unified.

@szweibel
Copy link
Contributor Author

szweibel commented Jan 14, 2024

Here's another:
image
This broke DHRIFT to the point of killing the browser tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant